aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/process-nexttick.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-31 17:55:16 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-31 17:55:16 -0800
commitcc4326cd829decc95d1f1f23998f97705637e04b (patch)
tree9ccaa829b6d48af521d5e5fcdbabc0dac8d186af /test/bun.js/process-nexttick.test.js
parentc57b37d29f9d04780c7f7917789cf8b424710d23 (diff)
downloadbun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.gz
bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.zst
bun-cc4326cd829decc95d1f1f23998f97705637e04b.zip
Re-run prettier after changes
Diffstat (limited to 'test/bun.js/process-nexttick.test.js')
-rw-r--r--test/bun.js/process-nexttick.test.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/bun.js/process-nexttick.test.js b/test/bun.js/process-nexttick.test.js
index a1b1b84b0..becf3c236 100644
--- a/test/bun.js/process-nexttick.test.js
+++ b/test/bun.js/process-nexttick.test.js
@@ -59,10 +59,7 @@ it("process.nextTick", async () => {
passed = exception instanceof TypeError;
}
- if (!passed)
- throw new Error(
- "queueMicrotask should throw a TypeError if the argument is not a function",
- );
+ if (!passed) throw new Error("queueMicrotask should throw a TypeError if the argument is not a function");
}
{
@@ -73,10 +70,7 @@ it("process.nextTick", async () => {
passed = exception instanceof TypeError;
}
- if (!passed)
- throw new Error(
- "queueMicrotask should throw a TypeError if the argument is empty",
- );
+ if (!passed) throw new Error("queueMicrotask should throw a TypeError if the argument is empty");
}
});
@@ -84,8 +78,7 @@ it("process.nextTick 2 args", async () => {
await new Promise((resolve, reject) => {
process.nextTick(
(first, second) => {
- if (first !== 12345 || second !== "hello")
- reject(new Error("process.nextTick called with wrong arguments"));
+ if (first !== 12345 || second !== "hello") reject(new Error("process.nextTick called with wrong arguments"));
resolve(true);
},
12345,