diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /std/node/_util/_util_promisify_test.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/node/_util/_util_promisify_test.ts')
-rw-r--r-- | std/node/_util/_util_promisify_test.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/std/node/_util/_util_promisify_test.ts b/std/node/_util/_util_promisify_test.ts index 4369a0132..5148bc609 100644 --- a/std/node/_util/_util_promisify_test.ts +++ b/std/node/_util/_util_promisify_test.ts @@ -36,7 +36,7 @@ Deno.test( "Errors should reject the promise", async function testPromiseRejection() { await assertThrowsAsync(() => readFile("/dontexist"), Deno.errors.NotFound); - } + }, ); Deno.test("Promisify.custom", async function testPromisifyCustom() { @@ -106,7 +106,7 @@ Deno.test( } const value = await promisify(fn)(); assertStrictEquals(value, "foo"); - } + }, ); Deno.test( @@ -117,7 +117,7 @@ Deno.test( } const value = await promisify(fn)(); assertStrictEquals(value, undefined); - } + }, ); Deno.test( @@ -128,7 +128,7 @@ Deno.test( } const value = await promisify(fn)(); assertStrictEquals(value, undefined); - } + }, ); Deno.test( @@ -139,7 +139,7 @@ Deno.test( } const value = await promisify(fn)(null, 42); assertStrictEquals(value, 42); - } + }, ); Deno.test( @@ -151,9 +151,9 @@ Deno.test( await assertThrowsAsync( () => promisify(fn)(new Error("oops"), null), Error, - "oops" + "oops", ); - } + }, ); Deno.test("Rejected value", async function testPromisifyWithAsObjectMethod() { @@ -173,7 +173,7 @@ Deno.test( "Multiple callback", async function testPromisifyWithMultipleCallback() { const err = new Error( - "Should not have called the callback with the error." + "Should not have called the callback with the error.", ); const stack = err.stack; @@ -185,7 +185,7 @@ Deno.test( await fn(); await Promise.resolve(); return assertStrictEquals(stack, err.stack); - } + }, ); Deno.test("Promisify a promise", function testPromisifyPromise() { @@ -203,7 +203,7 @@ Deno.test("Test error", async function testInvalidArguments() { a: number, b: number, c: number, - cb: Function + cb: Function, ): void { errToThrow = new Error(`${a}-${b}-${c}-${cb}`); throw errToThrow; @@ -227,7 +227,7 @@ Deno.test("Test invalid arguments", function testInvalidArguments() { assert(e instanceof TypeError); assertEquals( e.message, - `The "original" argument must be of type Function. Received ${typeof input}` + `The "original" argument must be of type Function. Received ${typeof input}`, ); } }); |