Skip to content

Commit

Permalink
Replace EOL on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 7, 2024
1 parent 8c51170 commit bac0dff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/text_layer_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ describe("Text layer", () => {
const TOLERANCE = 10;

const actual = await page.evaluate(() =>
window.getSelection().toString()
// We need to replace EOL on Windows to match the expected string.

Check failure on line 57 in test/integration/text_layer_spec.mjs

View workflow job for this annotation

GitHub Actions / Lint (lts/*)

This line has a comment length of 82. Maximum allowed is 80
window.getSelection().toString().replaceAll("\r\n", "\n")
);

let start, end;
Expand Down

0 comments on commit bac0dff

Please sign in to comment.