summaryrefslogtreecommitdiff
path: root/testing/test.ts
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-09-12 11:31:23 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-09-11 23:31:23 -0400
commit878a9a29e77bcaedd4242618ccf57d1be7dfd7d8 (patch)
tree53fd448fa9cf0295c2498f4f7970f1a720435dcc /testing/test.ts
parent08087e921ede553d1eaeb682d264c3d4c217a3cd (diff)
bump prettier to 1.18.2 (denoland/deno_std#592)
Original: https://github.com/denoland/deno_std/commit/06958a4ada960665a48ac34f919423e0d8d16951
Diffstat (limited to 'testing/test.ts')
-rw-r--r--testing/test.ts20
1 files changed, 8 insertions, 12 deletions
diff --git a/testing/test.ts b/testing/test.ts
index 93233f7cc..dd6d772f6 100644
--- a/testing/test.ts
+++ b/testing/test.ts
@@ -51,12 +51,10 @@ 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);
});
@@ -64,12 +62,10 @@ 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;