File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var fs = require('fs');
77var getDiffs = helpers . getDiffs ;
88
99function getExpectedOutput ( ) {
10- var output = fs . readFileSync ( 'test/integration/fixtures/diffs/output' , 'UTF8' ) ;
10+ var output = fs . readFileSync ( 'test/integration/fixtures/diffs/output' , 'UTF8' ) . replace ( / \r \n / g , '\n' ) ;
1111
1212 // Diffs are delimited in file by "// DIFF"
1313 return output . split ( / \s * \/ \/ D I F F / ) . slice ( 1 ) . map ( function ( diff ) {
@@ -21,7 +21,7 @@ describe('diffs', function () {
2121 before ( function ( done ) {
2222 run ( 'diffs/diffs.fixture.js' , [ '-C' ] , function ( err , res ) {
2323 expected = getExpectedOutput ( ) ;
24- diffs = getDiffs ( res . output ) ;
24+ diffs = getDiffs ( res . output . replace ( / \r \n / g , '\n' ) ) ;
2525 done ( err ) ;
2626 } ) ;
2727 } ) ;
You can’t perform that action at this time.
0 commit comments