From f75a8ad7237f3bbe33d73725805c422f20f391ba Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 17 Dec 2014 14:58:09 -0500 Subject: [PATCH] test: remove redundant code in test A block of asserts were duplicated in test/simple/test-child-process-spawn-typeerror.js. This commit removes the duplicated asserts. Fixes: https://github.com/joyent/node/pull/8454 Reviewed-By: Colin Ihrig --- test/simple/test-child-process-spawn-typeerror.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/simple/test-child-process-spawn-typeerror.js b/test/simple/test-child-process-spawn-typeerror.js index 4a136db86c08..5c2f8ec63525 100644 --- a/test/simple/test-child-process-spawn-typeerror.js +++ b/test/simple/test-child-process-spawn-typeerror.js @@ -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);