Skip to content

Commit 93fb992

Browse files
committed
test: replace line endings globally
1 parent c83e1e6 commit 93fb992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/index.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ for (const testCase of testCases) {
9797
});
9898

9999
if (fs.existsSync(outputPath)) {
100-
expect(propTypes.replace(/\r?\n/, '\n')).toMatch(
101-
fs.readFileSync(outputPath, 'utf8').replace(/\r?\n/, '\n')
100+
expect(propTypes.replace(/\r?\n/g, '\n')).toMatch(
101+
fs.readFileSync(outputPath, 'utf8').replace(/\r?\n/g, '\n')
102102
);
103103
} else {
104104
fs.writeFileSync(outputPath, propTypes);

0 commit comments

Comments
 (0)