Skip to content

Commit e0b3046

Browse files
committed
vue tests now tolerant of crlf
1 parent 6d9be0e commit e0b3046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/vue.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var webpackMajorVersion = require('./webpackVersion')();
1212

1313
describe('[INTEGRATION] vue', function () {
1414
this.timeout(60000);
15-
process.setMaxListeners(20);
15+
process.setMaxListeners(0);
1616
var plugin;
1717
var files;
1818
var compiler;
@@ -164,7 +164,7 @@ describe('[INTEGRATION] vue', function () {
164164
var source = checker.program.getSourceFile(sourceFilePath);
165165
expect(source).to.not.be.undefined;
166166
// remove padding lines
167-
var text = source.text.replace(/^\s*\/\/.*$\n/gm, '');
167+
var text = source.text.replace(/^\s*\/\/.*$\r*\n/gm, '');
168168
expect(text.startsWith('/* OK */')).to.be.true;
169169
});
170170
});

0 commit comments

Comments
 (0)