aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/child_process-node.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/child_process-node.test.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();
});
});