File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ var expressions = {
2525function parseOutput ( output , next ) {
2626 var error ,
2727 report = { } ,
28- lines = output . split ( '\n' ) . filter ( function ( line ) {
28+ lines = output . split ( / \r ? \n / ) . filter ( function ( line ) {
2929 if ( line ) {
3030 return true ;
3131 }
Original file line number Diff line number Diff line change 2525 "node" : " *"
2626 },
2727 "scripts" : {
28- "test" : " grunt jslint && node node_modules/. bin/vows test/*.js --spec"
28+ "test" : " grunt jslint && node node_modules/vows/ bin/vows test/*.js --spec"
2929 },
3030 "keywords" : [
3131 " cpplint" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ var vows = require('vows');
66
77var assert = require ( 'assert' ) ;
88
9+ var path = require ( 'path' ) ;
10+
911var makeArgs = require ( '../lib/make-args.js' ) . makeArgs ;
1012
1113var filter = require ( '../lib/make-args.js' ) . filter ;
@@ -112,7 +114,8 @@ suite.addBatch({
112114 ]
113115 } ) ,
114116 'first arg should contain "cpplint/cpplint.py"' : function ( err , args ) {
115- assert . includes ( args [ 0 ] , 'cpplint/cpplint.py' ) ;
117+ var cpplintpy = path . join ( 'cpplint' , 'cpplint.py' ) ;
118+ assert . includes ( args [ 0 ] , cpplintpy ) ;
116119 } ,
117120 'should pass the correct verbose value' : function ( err , args ) {
118121 assert . includes ( args , '--verbose=1' ) ;
You can’t perform that action at this time.
0 commit comments