Skip to content

Commit

Permalink
test: fix test by normalizing to \n
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper committed Nov 5, 2023
1 parent d4320c4 commit d27ea3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/fileTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ describe("SimaiFile", () => {
// kvp here somehow have \r\n?
const kvp = _simaiFile.getValue("inote_3");
assert.equal(
kvp,
kvp.replace(/\r\n/g, "\n"),
`(170){16}7/2-6[8:1],,1-5[8:1],8,2,,1,,
{8}2,18,7,16,2/7h[4:1],1,
3,{16}3,4,{8}2h[8:1]/5h[8:1],,18,,
{16}2/7-3[8:1],,8-4[8:1],1,7,,8,,
{8}7,81,2,83,7/2h[4:1],8,
6,{16}6,5,{8}7h[8:1]/4h[8:1],,7h[16:3]/1,,`.replace(/\n/g, "\r\n")
6,{16}6,5,{8}7h[8:1]/4h[8:1],,7h[16:3]/1,,`.replace(/\r\n/g, "\n")
);
});
});

0 comments on commit d27ea3e

Please sign in to comment.