summaryrefslogtreecommitdiff
path: root/test/parallel/test-url-format-whatwg.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2017-07-05 15:04:24 +0200
committerRefael Ackermann <refack@gmail.com>2017-07-09 14:19:13 -0400
commit1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14 (patch)
treea91619531705dd144306cc07e01a3cc8d23f3bd7 /test/parallel/test-url-format-whatwg.js
parentbe20e9ecfe79bea30fdca0f5757c0c54a02ac062 (diff)
downloadandroid-node-v8-1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14.tar.gz
android-node-v8-1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14.tar.bz2
android-node-v8-1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14.zip
test: common.expectsError should be a must call
Wrap expectsError in mustCall to make sure it's really called as expected. PR-URL: https://github.com/nodejs/node/pull/14088 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'test/parallel/test-url-format-whatwg.js')
-rw-r--r--test/parallel/test-url-format-whatwg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-url-format-whatwg.js b/test/parallel/test-url-format-whatwg.js
index d484760c80..d6afe46426 100644
--- a/test/parallel/test-url-format-whatwg.js
+++ b/test/parallel/test-url-format-whatwg.js
@@ -25,7 +25,7 @@ assert.strictEqual(
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "options" argument must be of type object'
- });
+ }, 4);
assert.throws(() => url.format(myURL, true), expectedErr);
assert.throws(() => url.format(myURL, 1), expectedErr);
assert.throws(() => url.format(myURL, 'test'), expectedErr);