Skip to content

Commit

Permalink
adjust cwd test
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkaliski committed Jan 24, 2024
1 parent 0924a4c commit 248bc68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe("PTY", () => {
"/bin/pwd",
[],
{},
"/bin",
CWD,
[80, 24],
(err, exitCode) => {
expect(err).toBeNull();
Expand All @@ -102,7 +102,7 @@ describe("PTY", () => {
const readStream = fs.createReadStream("", { fd: pty.fd });

readStream.on("data", (chunk) => {
expect(chunk.toString()).toBe("/bin\r\n");
expect(chunk.toString()).toBe(`${CWD}\r\n`);
});
});

Expand Down

0 comments on commit 248bc68

Please sign in to comment.