Skip to content

Commit

Permalink
fix: replace \r\n in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 19, 2022
1 parent c189fde commit b1f33c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-service/tests/complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ for (const dirName of testDirs) {

const result = TextDocument.applyEdits(TextDocument.create('', '', 0, fileText), edits);

expect(result).toBe(expectedFileText);
expect(result.replace(/\r\n/g, '\n')).toBe(expectedFileText.replace(/\r\n/g, '\n'));
});
}

Expand Down

0 comments on commit b1f33c1

Please sign in to comment.