Skip to content

Commit c816acd

Browse files
committed
Do not hard code path delimiter.
1 parent 5976b40 commit c816acd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/make-args.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ var vows = require('vows');
66

77
var assert = require('assert');
88

9+
var path = require('path');
10+
911
var makeArgs = require('../lib/make-args.js').makeArgs;
1012

1113
var 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');

0 commit comments

Comments
 (0)