Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correcting unit test to standards
  • Loading branch information
Bryce Simonds committed Jun 6, 2016
commit 18a58af63c5c58309f0382087c942f3bbc8f5fca
2 changes: 1 addition & 1 deletion test/parallel/test-cli-eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ child.exec(nodejs + ' --eval "require(\'./test/parallel/test-cli-eval.js\')"',
// Missing argument should not crash
child.exec(nodejs + ' -e', function(status, stdout, stderr) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the assertion happens within the callback, its better to use common.mustCall

assert.notStrictEqual(status, null);
assert.equal(status.code, 9);
assert.strictEqual(status.code, 9);
});

// empty program should do nothing
Expand Down