diff options
Diffstat (limited to 'test/bun.js')
-rw-r--r-- | test/bun.js/child_process.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bun.js/child_process.test.ts b/test/bun.js/child_process.test.ts index bdb197180..6fe5bf996 100644 --- a/test/bun.js/child_process.test.ts +++ b/test/bun.js/child_process.test.ts @@ -36,13 +36,13 @@ const it: typeof it_ = (label, fn) => { } else if (fn.constructor.name === "AsyncFunction") { return it_(label, async () => { gcTick(); - await fn(); + await fn(() => {}); gcTick(); }); } else { return it_(label, () => { gcTick(); - fn(); + fn(() => {}); gcTick(); }); } @@ -204,7 +204,7 @@ describe("spawn()", () => { it("should allow explicit setting of argv0", async () => { var resolve; - const promise = new Promise((resolve1) => { + const promise = new Promise<string>((resolve1) => { resolve = resolve1; }); process.env.NO_COLOR = "1"; |