Skip to content

Commit f0e2f4e

Browse files
committedDec 4, 2018
Linter tests should use Os.EOL.
1 parent e003fff commit f0e2f4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎test/linters.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Load modules
44

55
const Fs = require('fs');
6+
const Os = require('os');
67
const Path = require('path');
78
const _Lab = require('../test_runner');
89
const Code = require('code');
@@ -154,7 +155,8 @@ describe('Linters - eslint', () => {
154155
Fs.writeFileSync = (path, output) => {
155156

156157
expect(path).to.endWith(Path.join('test', 'lint', 'eslint', 'fix', 'success.js'));
157-
expect(output).to.endWith('\n return value;\n};\n');
158+
159+
expect(output).to.endWith(Os.EOL + ' return value;' + Os.EOL + '};' + Os.EOL);
158160
isFixed = true;
159161
};
160162

0 commit comments

Comments
 (0)
Please sign in to comment.