Skip to content

Commit 9a1c3c2

Browse files
committed
test: remove callback Error for multiple args test
As a result of tj/commander.js#2223 commander@^13 and later print an error and exit for excess arguments. This is already tested by 'exit code 1 with extra args works when executed'. Signed-off-by: Kevin Locke <[email protected]>
1 parent 704147e commit 9a1c3c2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/git-branch-is-cmd.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,6 @@ describe('git-branch-is', function() {
268268
});
269269
});
270270

271-
// Note: This is one of the few errors that doesn't call process.exit
272-
it('callback Error for multiple args', (done) => {
273-
gitBranchIsCmd([...ARGS, BRANCH_CURRENT, 'foo'], (err, result) => {
274-
assert(err instanceof Error);
275-
assertMatch(err.message, /\bargument/i);
276-
assertMatch(err.message, /\busage/i);
277-
done();
278-
});
279-
});
280-
281271
it('can specify an additional git argument', (done) => {
282272
const args = [
283273
...ARGS,

0 commit comments

Comments
 (0)