aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-path.js
diff options
context:
space:
mode:
authorSebastian Van Sande <sebastian@vansande.org>2017-02-11 20:32:16 +0100
committerMichael Dawson <michael_dawson@ca.ibm.com>2017-06-06 17:20:23 -0400
commitdcfbbacba8c22613b956c1a3b9d958676e5d5e87 (patch)
treef9ea9757b3874f2e21149b968c4fdbda8a4dd621 /test/parallel/test-path.js
parent4c5cbb7c8367abde6409ce68eee0e5eb5f07903d (diff)
downloadandroid-node-v8-dcfbbacba8c22613b956c1a3b9d958676e5d5e87.tar.gz
android-node-v8-dcfbbacba8c22613b956c1a3b9d958676e5d5e87.tar.bz2
android-node-v8-dcfbbacba8c22613b956c1a3b9d958676e5d5e87.zip
path: use internal/errors.js
PR-URL: https://github.com/nodejs/node/pull/11319 Ref: https://github.com/nodejs/node/issues/11273 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/parallel/test-path.js')
-rw-r--r--test/parallel/test-path.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-path.js b/test/parallel/test-path.js
index cdf5c4d9f5..c9729ae875 100644
--- a/test/parallel/test-path.js
+++ b/test/parallel/test-path.js
@@ -369,7 +369,7 @@ function fail(fn) {
assert.throws(() => {
fn.apply(null, args);
- }, TypeError);
+ }, common.expectsError({code: 'ERR_INVALID_ARG_TYPE', type: TypeError}));
}
typeErrorTests.forEach((test) => {