diff options
| author | 2023-01-31 17:55:16 -0800 | |
|---|---|---|
| committer | 2023-01-31 17:55:16 -0800 | |
| commit | cc4326cd829decc95d1f1f23998f97705637e04b (patch) | |
| tree | 9ccaa829b6d48af521d5e5fcdbabc0dac8d186af /test/bun.js/process-nexttick.js | |
| parent | c57b37d29f9d04780c7f7917789cf8b424710d23 (diff) | |
| download | bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.gz bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.zst bun-cc4326cd829decc95d1f1f23998f97705637e04b.zip | |
Re-run prettier after changes
Diffstat (limited to 'test/bun.js/process-nexttick.js')
| -rw-r--r-- | test/bun.js/process-nexttick.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/test/bun.js/process-nexttick.js b/test/bun.js/process-nexttick.js index ea9d0581e..c6b24ba14 100644 --- a/test/bun.js/process-nexttick.js +++ b/test/bun.js/process-nexttick.js @@ -57,10 +57,7 @@ await new Promise((resolve, reject) => { 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"); } { @@ -71,18 +68,14 @@ await new Promise((resolve, reject) => { 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"); } await new Promise((resolve, reject) => { process.nextTick( (first, second) => { console.log(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, |
