aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-17 04:44:56 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-17 04:44:56 -0700
commit58824ea743c59c083c842359f61e288fe2d95b14 (patch)
tree7bace97acba69758a0ab8329cacbf437cae3aa44
parent99de9713590be403dd24cae0ff4cad3f8761ad3b (diff)
downloadbun-58824ea743c59c083c842359f61e288fe2d95b14.tar.gz
bun-58824ea743c59c083c842359f61e288fe2d95b14.tar.zst
bun-58824ea743c59c083c842359f61e288fe2d95b14.zip
Fix test with incorrect text
-rw-r--r--test/cli/install/bun-link.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cli/install/bun-link.test.ts b/test/cli/install/bun-link.test.ts
index e79f09aaf..39872b072 100644
--- a/test/cli/install/bun-link.test.ts
+++ b/test/cli/install/bun-link.test.ts
@@ -60,7 +60,7 @@ it("should link package", async () => {
const err1 = await new Response(stderr1).text();
expect(err1.replace(/^(.*?) v[^\n]+/, "$1").split(/\r?\n/)).toEqual(["bun link", ""]);
expect(stdout1).toBeDefined();
- expect(await new Response(stdout1).text()).toContain(`Success! Registered \\"${link_name}\\"`);
+ expect(await new Response(stdout1).text()).toContain(`Success! Registered "${link_name}"`);
expect(await exited1).toBe(0);
const {
@@ -161,7 +161,7 @@ it("should link scoped package", async () => {
const err1 = await new Response(stderr1).text();
expect(err1.replace(/^(.*?) v[^\n]+/, "$1").split(/\r?\n/)).toEqual(["bun link", ""]);
expect(stdout1).toBeDefined();
- expect(await new Response(stdout1).text()).toContain(`Success! Registered \\"${link_name}\\"`);
+ expect(await new Response(stdout1).text()).toContain(`Success! Registered "${link_name}"`);
expect(await exited1).toBe(0);
const {
@@ -269,7 +269,7 @@ it("should link dependency without crashing", async () => {
const err1 = await new Response(stderr1).text();
expect(err1.replace(/^(.*?) v[^\n]+/, "$1").split(/\r?\n/)).toEqual(["bun link", ""]);
expect(stdout1).toBeDefined();
- expect(await new Response(stdout1).text()).toContain(`Success! Registered \\"${link_name}\\"`);
+ expect(await new Response(stdout1).text()).toContain(`Success! Registered "${link_name}"`);
expect(await exited1).toBe(0);
const {