aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/install/bun-link.test.ts
diff options
context:
space:
mode:
authorGravatar Alex Lam S.L <alexlamsl@gmail.com> 2023-02-24 15:53:26 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-24 05:53:26 -0800
commite887a064fb63347b4a4b21c282c1db01dfee98b1 (patch)
tree6270a7ce5527ea06d709d4b92e14623518e0f5b5 /test/bun.js/install/bun-link.test.ts
parent6e4908e51793d82d3b6924b2ede9a02f1e95bf37 (diff)
downloadbun-e887a064fb63347b4a4b21c282c1db01dfee98b1.tar.gz
bun-e887a064fb63347b4a4b21c282c1db01dfee98b1.tar.zst
bun-e887a064fb63347b4a4b21c282c1db01dfee98b1.zip
prefer `bun.copy()` over `std.mem.copy()` (#2152)
Diffstat (limited to 'test/bun.js/install/bun-link.test.ts')
-rw-r--r--test/bun.js/install/bun-link.test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/bun.js/install/bun-link.test.ts b/test/bun.js/install/bun-link.test.ts
index 137242cc4..88e124ec2 100644
--- a/test/bun.js/install/bun-link.test.ts
+++ b/test/bun.js/install/bun-link.test.ts
@@ -341,6 +341,7 @@ it("should link dependency without crashing", async () => {
const err4 = await new Response(stderr4).text();
expect(err4).toContain(`error: FileNotFound installing ${link_name}`);
expect(stdout4).toBeDefined();
- expect(await new Response(stdout4).text()).toBe("");
+ const out4 = await new Response(stdout4).text();
+ expect(out4.replace(/\[[0-9\.]+m?s\]/, "[]").split(/\r?\n/)).toEqual(["Failed to install 1 packages", "[] done", ""]);
expect(await exited4).toBe(0);
});