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.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/bun.js/child_process-node.test.js b/test/bun.js/child_process-node.test.js
index a28ae21f2..3cb8cd9e1 100644
--- a/test/bun.js/child_process-node.test.js
+++ b/test/bun.js/child_process-node.test.js
@@ -4,7 +4,6 @@ import {
strictEqual,
throws,
assert,
- assertOk,
createCallCheckCtx,
createDoneDotAll,
} from "node-test-helpers";
@@ -405,11 +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", () => {
- assertOk(
- response.includes(`TMPDIR=${platformTmpDir}`),
- "spawn did not use process.env as default " +
- `(process.env.TMPDIR=${platformTmpDir})`,
- );
+ expect(response.includes(`TMPDIR=${platformTmpDir}`)).toBe(true);
done();
});
});