Skip to content

Commit

Permalink
update test error messages, down to 2 failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 14, 2011
1 parent 53f7bc6 commit dd87333
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/usage.js
Expand Up @@ -11,7 +11,10 @@ exports.usageFail = function () {
});
assert.deepEqual(r, {
result : { x : 10, z : 20, _ : [], $0 : './usage' },
errors : [ 'Usage: ./usage -x NUM -y NUM', 'Missing arguments: y' ],
errors : [
'Usage: ./usage -x NUM -y NUM',
'Missing required arguments: y',
],
logs : [],
exit: true,
});
Expand Down Expand Up @@ -135,7 +138,7 @@ exports.countFail = function () {
result : { _ : [ '1', '2' ], moo : true, $0 : './usage' },
errors : [
'Usage: ./usage [x] [y] [z] {OPTIONS}',
'Not enough arguments, expected 3, but only found 2'
'Not enough non-option arguments: got 2, need at least 3',
],
logs : [],
exit: true,
Expand Down

0 comments on commit dd87333

Please sign in to comment.