Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner authored and paperdave committed Sep 18, 2023
1 parent b1c8f22 commit e124b2d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file modified test/bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions test/js/third_party/prompts/prompts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ test("works with prompts", async () => {
child.stdin.write("999\n");
Bun.sleepSync(100);
child.stdin.write("hi\n");
expect(await child.exited).toBe(0);

var out = "";
for await (const chunk of child.stdout) {
out += new TextDecoder().decode(chunk);
}

expect(await child.exited).toBe(0);

expect(out).toContain('twitter: "@dylan"');
expect(out).toContain("age: 999");
expect(out).toContain('secret: "hi"');
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"pg-connection-string": "2.6.1",
"postgres": "3.3.5",
"prisma": "5.1.1",
"prompts": "^2.4.2",
"prompts": "2.4.2",
"socket.io": "4.7.1",
"socket.io-client": "4.7.1",
"supertest": "6.3.3",
Expand Down

0 comments on commit e124b2d

Please sign in to comment.