summaryrefslogtreecommitdiff
path: root/std/node/_util/_util_callbackify_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /std/node/_util/_util_callbackify_test.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/node/_util/_util_callbackify_test.ts')
-rw-r--r--std/node/_util/_util_callbackify_test.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/std/node/_util/_util_callbackify_test.ts b/std/node/_util/_util_callbackify_test.ts
index e8a313905..d585f0551 100644
--- a/std/node/_util/_util_callbackify_test.ts
+++ b/std/node/_util/_util_callbackify_test.ts
@@ -58,7 +58,7 @@ class TestQueue {
if (this.#queueSize === 0) {
assert(
this.#resolve,
- "Test setup error; async queue is missing #resolve"
+ "Test setup error; async queue is missing #resolve",
);
this.#resolve();
}
@@ -127,7 +127,7 @@ Deno.test(
}
await testQueue.waitForCompletion();
- }
+ },
);
Deno.test(
@@ -152,7 +152,7 @@ Deno.test(
assertStrictEquals(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(err as any).code,
- "ERR_FALSY_VALUE_REJECTION"
+ "ERR_FALSY_VALUE_REJECTION",
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assertStrictEquals((err as any).reason, value);
@@ -188,7 +188,7 @@ Deno.test(
assertStrictEquals(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(err as any).code,
- "ERR_FALSY_VALUE_REJECTION"
+ "ERR_FALSY_VALUE_REJECTION",
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assertStrictEquals((err as any).reason, value);
@@ -222,7 +222,7 @@ Deno.test(
assertStrictEquals(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(err as any).code,
- "ERR_FALSY_VALUE_REJECTION"
+ "ERR_FALSY_VALUE_REJECTION",
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assertStrictEquals((err as any).reason, value);
@@ -238,7 +238,7 @@ Deno.test(
}
await testQueue.waitForCompletion();
- }
+ },
);
Deno.test("callbackify passes arguments to the original", async () => {
@@ -304,7 +304,7 @@ Deno.test("callbackify preserves the `this` binding", async () => {
cbSyncFunction.call(objectWithSyncFunction, value, function (
this: unknown,
err: unknown,
- ret: unknown
+ ret: unknown,
) {
assertStrictEquals(err, null);
assertStrictEquals(ret, value);
@@ -325,7 +325,7 @@ Deno.test("callbackify preserves the `this` binding", async () => {
cbAsyncFunction.call(objectWithAsyncFunction, value, function (
this: unknown,
err: unknown,
- ret: unknown
+ ret: unknown,
) {
assertStrictEquals(err, null);
assertStrictEquals(ret, value);
@@ -351,7 +351,7 @@ Deno.test("callbackify throws with non-function inputs", () => {
assertStrictEquals(err.name, "TypeError");
assertStrictEquals(
err.message,
- 'The "original" argument must be of type function.'
+ 'The "original" argument must be of type function.',
);
}
});
@@ -382,9 +382,9 @@ Deno.test(
assertStrictEquals(err.name, "TypeError");
assertStrictEquals(
err.message,
- "The last argument must be of type function."
+ "The last argument must be of type function.",
);
}
});
- }
+ },
);