aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js
diff options
context:
space:
mode:
authorGravatar Derrick Farris <mr.dcfarris@gmail.com> 2023-01-11 20:52:15 -0600
committerGravatar Derrick Farris <mr.dcfarris@gmail.com> 2023-01-11 20:52:15 -0600
commitf8114d09fdd76d6783fabf49cbeacdde3ad4d6b5 (patch)
treec751db46a5d71e7a86c5fd1fe4d5c1b0d1233e41 /test/bun.js
parent4969f068f63e68a19aacc67cc094421fa7297c07 (diff)
downloadbun-f8114d09fdd76d6783fabf49cbeacdde3ad4d6b5.tar.gz
bun-f8114d09fdd76d6783fabf49cbeacdde3ad4d6b5.tar.zst
bun-f8114d09fdd76d6783fabf49cbeacdde3ad4d6b5.zip
test(child_process): fix assert -> assert.ok
Diffstat (limited to 'test/bun.js')
-rw-r--r--test/bun.js/child_process-node.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bun.js/child_process-node.test.js b/test/bun.js/child_process-node.test.js
index 3cb8cd9e1..8c3c0a353 100644
--- a/test/bun.js/child_process-node.test.js
+++ b/test/bun.js/child_process-node.test.js
@@ -180,7 +180,7 @@ describe("ChildProcess.spawn", () => {
// Test that we can call spawn
strictEqual(Object.hasOwn(child, "pid"), true);
- assert(Number.isInteger(child.pid));
+ assert.ok(Number.isInteger(child.pid));
child.kill();
});
@@ -404,7 +404,7 @@ describe("child_process default options", () => {
// NOTE: Original test used child.on("exit"), but this is unreliable
// because the process can exit before the stream is closed and the data is read
child.stdout.on("close", () => {
- expect(response.includes(`TMPDIR=${platformTmpDir}`)).toBe(true);
+ assert.ok(response.includes(`TMPDIR=${platformTmpDir}`));
done();
});
});