Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 7a7153b

Browse files
committedJan 27, 2017
fix: replace all newlines
1 parent d658f43 commit 7a7153b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/parsing-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ function compare(t: ContextualTestContext, moduleName: string|null, file1: strin
2626
opts: react2dts.IOptions = {}): void {
2727
textDiff(
2828
t,
29-
react2dts.generateFromFile(moduleName, path.join(basedir, file1), opts).replace('\r\n', '\n'),
30-
fs.readFileSync(path.join(basedir, file2)).toString().replace('\r\n', '\n')
29+
react2dts.generateFromFile(moduleName, path.join(basedir, file1), opts).replace(/\r\n/g, '\n'),
30+
fs.readFileSync(path.join(basedir, file2)).toString().replace(/\r\n/g, '\n')
3131
);
3232
}
3333

0 commit comments

Comments
 (0)
This repository has been archived.