diff options
author | Julien Gilli <julien.gilli@joyent.com> | 2015-01-12 17:40:47 -0800 |
---|---|---|
committer | Julien Gilli <julien.gilli@joyent.com> | 2015-01-12 17:40:47 -0800 |
commit | c3155779945ee21cee4cc5abf318b89d51905156 (patch) | |
tree | 8ca95783ec1adfb1668999a97176249871eaf0cb /test | |
parent | 7f4b45dbe8d9e2b53779aae225f939368842805d (diff) | |
download | node-c3155779945ee21cee4cc5abf318b89d51905156.tar.gz |
child_process: fix test after latest merge
child_process.spawn's argument parsing is stricter in v0.12 than in
v0.10. Changes in tests merged from v0.10 that relied on the less-strict
argument parsing would fail. This change updates the test so that it
makes sure that the stricter argument parsing fails as expected.
This change also fixes a small typo introduced during the conflicts
resolution of said merge.
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/test-child-process-spawn-typeerror.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/simple/test-child-process-spawn-typeerror.js b/test/simple/test-child-process-spawn-typeerror.js index d05c20b2d..759f17cee 100644 --- a/test/simple/test-child-process-spawn-typeerror.js +++ b/test/simple/test-child-process-spawn-typeerror.js @@ -20,7 +20,7 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. var assert = require('assert'), - child_process = require('child_process'); + child_process = require('child_process'), spawn = child_process.spawn, fork = child_process.fork, execFile = child_process.execFile, @@ -107,7 +107,7 @@ assert.throws(function() { spawn(cmd, n, o); }, TypeError); assert.throws(function() { spawn(cmd, a, n); }, TypeError); assert.throws(function() { spawn(cmd, s); }, TypeError); -assert.doesNotThrow(function() { spawn(cmd, a, s); }, TypeError); +assert.throws(function() { spawn(cmd, a, s); }, TypeError); // verify that execFile has same argument parsing behaviour as spawn |