diff options
author | 2023-01-09 10:37:02 -0800 | |
---|---|---|
committer | 2023-01-09 10:37:02 -0800 | |
commit | 0e7f69f179176a51a75d00836224d208f20e1c49 (patch) | |
tree | cad0e219009683f4e154827c85bb89e6b3a2bf0e /test/bun.js | |
parent | 84ee02cb4ba98d6bb4a99811b3527ae707efa5d3 (diff) | |
download | bun-0e7f69f179176a51a75d00836224d208f20e1c49.tar.gz bun-0e7f69f179176a51a75d00836224d208f20e1c49.tar.zst bun-0e7f69f179176a51a75d00836224d208f20e1c49.zip |
Update child_process-node.test.js
Diffstat (limited to 'test/bun.js')
-rw-r--r-- | test/bun.js/child_process-node.test.js | 7 |
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(); }); }); |