Skip to content

Commit f5d1a04

Browse files
committed
test: fix default node ext to js,json
@pensierinmusica this was the fix you needed to pass the tests.
1 parent 9c6e5eb commit f5d1a04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cli/exec.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ describe('nodemon exec', function () {
2121
it('should default to node', function () {
2222
var options = exec({ script: 'index.js' });
2323
var cmd = toCmd(options);
24-
assert(options.exec === 'node', 'exec is node');
25-
assert(options.ext === 'js');
26-
assert(cmd.string === 'node index.js', cmd.string);
24+
assert.equal(options.exec, 'node', 'exec is node');
25+
assert.equal(options.ext, 'js,json');
26+
assert.equal(cmd.string, 'node index.js', cmd.string);
2727
});
2828

2929
it('should support --debug', function () {

0 commit comments

Comments
 (0)