Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: remove redundant code in test
Browse files Browse the repository at this point in the history
A block of asserts were duplicated in
test/simple/test-child-process-spawn-typeerror.js. This commit
removes the duplicated asserts.

Fixes: #8454
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
cjihrig committed Dec 17, 2014
1 parent 542234a commit f75a8ad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/simple/test-child-process-spawn-typeerror.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,5 @@ assert.doesNotThrow(function() { fork(empty, a); });
assert.doesNotThrow(function() { fork(empty, a, o); });
assert.doesNotThrow(function() { fork(empty, o); });

// Variants of undefined as explicit 'no argument' at a position
assert.doesNotThrow(function() { execFile(empty, u, o); });
assert.doesNotThrow(function() { execFile(empty, a, u); });
assert.doesNotThrow(function() { execFile(empty, n, o); });
assert.doesNotThrow(function() { execFile(empty, a, n); });

assert.throws(function() { fork(empty, s); }, TypeError);
assert.doesNotThrow(function() { fork(empty, a, s); }, TypeError);

0 comments on commit f75a8ad

Please sign in to comment.