Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
The execArgs is now a single element, not an array to simplify the spawn command, so I've fixed up the tests to reflect that.
  • Loading branch information
remy committed Jan 1, 2015
1 parent b905ffa commit 8a43b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli/exec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ describe('nodemon exec', function () {
var options = exec({ script: 'my app.js', exec: 'node {{filename}}.tmp --somethingElse' });
var cmd = command({ execOptions: options });

assert(cmd.args[0] === 'my app.js.tmp', cmd.args[0]);
assert(cmd.args[0] === 'my app.js.tmp --somethingElse', cmd.args[0]);
});

it('should support extension maps', function () {
var options = exec({ script: 'template.jade' }, { 'jade': 'jade {{filename}} --out /tmp' });
assert(options.exec === 'jade', 'exec used, should be "jade": ' + options.exec);
assert(options.execArgs[0] === 'template.jade', 'filename interpolated');
assert(options.execArgs[0] === 'template.jade --out /tmp', 'filename interpolated');
});

it('should support input from argv#parse', function () {
Expand Down

0 comments on commit 8a43b58

Please sign in to comment.