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

Commit d658f43

Browse files
committed
test: compare unix line endings
make test more stable by converting everything to unix line endings
1 parent ada7da9 commit d658f43

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),
30-
fs.readFileSync(path.join(basedir, file2)).toString()
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')
3131
);
3232
}
3333

0 commit comments

Comments
 (0)