Update index.test-d.ts

This commit is contained in:
Federico Brigante 2022-11-25 17:02:37 +08:00
parent c1cf4c72df
commit 03431ca906
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ pTimeout(delayedPromise(), {milliseconds: 50}).then(value => {
pTimeout(delayedPromise(), {milliseconds: 50, message: 'error'}).then(value => { pTimeout(delayedPromise(), {milliseconds: 50, message: 'error'}).then(value => {
expectType<string>(value); expectType<string>(value);
}); });
pTimeout(delayedPromise(), {milliseconds: 50, message: false}).then(value => {
expectType<string>(value);
});
pTimeout(delayedPromise(), {milliseconds: 50, message: new Error('error')}).then(value => { pTimeout(delayedPromise(), {milliseconds: 50, message: new Error('error')}).then(value => {
expectType<string>(value); expectType<string>(value);
}); });