Skip to content

Commit

Permalink
line no check
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Oct 25, 2024
1 parent 91925ba commit c67fe75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ describe(
command: '/bin/sh',
args: [
'-c',
`seq 0 ${n}`
`seq 0 ${n} && exit`
],
onExit,
});
Expand All @@ -309,6 +309,7 @@ describe(
expect(onExit).toHaveBeenCalledWith(null, 0);

const lines = buffer.toString().trim().split('\n');
expect(lines.length).toBe(n + 1);

Check failure on line 312 in tests/index.test.ts

View workflow job for this annotation

GitHub Actions / Build and test on x86_64-unknown-linux-gnu

tests/index.test.ts > PTY > ordering is correct

AssertionError: expected 841 to be 1025 // Object.is equality - Expected + Received - 1025 + 841 ❯ tests/index.test.ts:312:30
for (let i = 0; i < n + 1; i++) {
expect(Number(lines[i]), `expected line ${i} to contain ${i} but got ${lines[i]}`).toBe(i);
}
Expand Down

0 comments on commit c67fe75

Please sign in to comment.