diff options
-rw-r--r-- | cli/tests/integration/test_tests.rs | 6 | ||||
-rw-r--r-- | cli/tests/test/clear_timeout.out | 8 | ||||
-rw-r--r-- | cli/tests/test/clear_timeout.ts | 5 |
3 files changed, 19 insertions, 0 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index c029b154d..64ad29e22 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -97,6 +97,12 @@ itest!(exit_sanitizer { exit_code: 1, }); +itest!(clear_timeout { + args: "test test/clear_timeout.ts", + exit_code: 0, + output: "test/clear_timeout.out", +}); + itest!(finally_timeout { args: "test test/finally_timeout.ts", exit_code: 1, diff --git a/cli/tests/test/clear_timeout.out b/cli/tests/test/clear_timeout.out new file mode 100644 index 000000000..c9f459dbe --- /dev/null +++ b/cli/tests/test/clear_timeout.out @@ -0,0 +1,8 @@ +Check [WILDCARD]/test/clear_timeout.ts +running 3 tests from [WILDCARD]/test/clear_timeout.ts +test test 1 ... ok ([WILDCARD]) +test test 2 ... ok ([WILDCARD]) +test test 3 ... ok ([WILDCARD]) + +test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]) + diff --git a/cli/tests/test/clear_timeout.ts b/cli/tests/test/clear_timeout.ts new file mode 100644 index 000000000..00056e853 --- /dev/null +++ b/cli/tests/test/clear_timeout.ts @@ -0,0 +1,5 @@ +clearTimeout(setTimeout(() => {}, 1000)); + +Deno.test("test 1", () => {}); +Deno.test("test 2", () => {}); +Deno.test("test 3", () => {}); |