We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c83e1e6 commit 93fb992Copy full SHA for 93fb992
test/index.test.ts
@@ -97,8 +97,8 @@ for (const testCase of testCases) {
97
});
98
99
if (fs.existsSync(outputPath)) {
100
- expect(propTypes.replace(/\r?\n/, '\n')).toMatch(
101
- fs.readFileSync(outputPath, 'utf8').replace(/\r?\n/, '\n')
+ expect(propTypes.replace(/\r?\n/g, '\n')).toMatch(
+ fs.readFileSync(outputPath, 'utf8').replace(/\r?\n/g, '\n')
102
);
103
} else {
104
fs.writeFileSync(outputPath, propTypes);
0 commit comments