diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-10-09 17:22:22 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-09 17:22:22 -0400 |
commit | 93f7f00c956c14620ef031626f124b57397ca867 (patch) | |
tree | c5a9f536e79d2c8d2d02897511a9138acaf35394 /std/testing/test.ts | |
parent | 28293acd9c12a94f5d769706291032e844c7b92b (diff) |
Run deno_std tests in github actions
Diffstat (limited to 'std/testing/test.ts')
-rw-r--r-- | std/testing/test.ts | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/std/testing/test.ts b/std/testing/test.ts index dd6d772f6..93233f7cc 100644 --- a/std/testing/test.ts +++ b/std/testing/test.ts @@ -51,10 +51,12 @@ test(function testingAssertNotStrictEqual(): void { test(function testingDoesThrow(): void { let count = 0; - assertThrows((): void => { - count++; - throw new Error(); - }); + assertThrows( + (): void => { + count++; + throw new Error(); + } + ); assert(count === 1); }); @@ -62,10 +64,12 @@ test(function testingDoesNotThrow(): void { let count = 0; let didThrow = false; try { - assertThrows((): void => { - count++; - console.log("Hello world"); - }); + assertThrows( + (): void => { + count++; + console.log("Hello world"); + } + ); } catch (e) { assert(e.message === "Expected function to throw."); didThrow = true; |