Skip to content

Commit

Permalink
better log
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Oct 25, 2024
1 parent 2c725bf commit 91925ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ describe(

const lines = buffer.toString().trim().split('\n');
for (let i = 0; i < n + 1; i++) {
expect(Number(lines[i])).toBe(i);
expect(Number(lines[i]), `expected line ${i} to contain ${i} but got ${lines[i]}`).toBe(i);

Check failure on line 313 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 line 841 to contain 841 but got undefined: expected NaN to be 841 // Object.is equality - Expected + Received - 841 + NaN ❯ tests/index.test.ts:313:94

Check failure on line 313 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 line 841 to contain 841 but got undefined: expected NaN to be 841 // Object.is equality - Expected + Received - 841 + NaN ❯ tests/index.test.ts:313:94
}

expect(getOpenFds()).toStrictEqual(oldFds);
Expand Down

0 comments on commit 91925ba

Please sign in to comment.