Skip to content

Commit c95ad46

Browse files
authored
add types test
1 parent fbfa897 commit c95ad46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

typings/tests/global-variables.types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,13 @@ expectType<void>(AfterSuite((args) => {
8383
// @ts-ignore
8484
expectType<CodeceptJS.I>(args.I)
8585
}))
86+
87+
// @ts-ignore
88+
expectType<Promise<boolean | any>>(tryTo(() => {
89+
return 123;
90+
}));
91+
92+
// @ts-ignore
93+
expectType<Promise<boolean | any>>(tryTo(async () => {
94+
return 'async result';
95+
}));

0 commit comments

Comments
 (0)