summaryrefslogtreecommitdiff
path: root/test/parallel/test-util-inherits.js
diff options
context:
space:
mode:
authorWeijia Wang <381152119@qq.com>2017-10-28 17:39:55 +0800
committerJames M Snell <jasnell@gmail.com>2017-11-12 11:04:06 -0800
commite22b8d0c46728ebdaf64176191ffa2bdd0f56be9 (patch)
tree7b5c9624490d67fc0c8bff2413e7a27e9f93bbbc /test/parallel/test-util-inherits.js
parente0113ab5e0e2b329668fa7d744fac3bfe8b95935 (diff)
downloadandroid-node-v8-e22b8d0c46728ebdaf64176191ffa2bdd0f56be9.tar.gz
android-node-v8-e22b8d0c46728ebdaf64176191ffa2bdd0f56be9.tar.bz2
android-node-v8-e22b8d0c46728ebdaf64176191ffa2bdd0f56be9.zip
lib: improve the usage of TypeError[INVALID_ARG_TYPE]
The initials of expected in TypeError[ERR_INVALID_ARG_TYPE] are inconsistent. This change is to unify them. PR-URL: https://github.com/nodejs/node/pull/16401 Fixes: https://github.com/nodejs/node/issues/16383 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'test/parallel/test-util-inherits.js')
-rw-r--r--test/parallel/test-util-inherits.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-util-inherits.js b/test/parallel/test-util-inherits.js
index 342e1f03f7..f05135ec78 100644
--- a/test/parallel/test-util-inherits.js
+++ b/test/parallel/test-util-inherits.js
@@ -6,7 +6,7 @@ const inherits = require('util').inherits;
const errCheck = common.expectsError({
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "superCtor" argument must be of type function'
+ message: 'The "superCtor" argument must be of type Function'
});
// super constructor
@@ -85,7 +85,7 @@ assert.throws(function() {
}, common.expectsError({
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "superCtor.prototype" property must be of type function'
+ message: 'The "superCtor.prototype" property must be of type Function'
})
);
assert.throws(function() {
@@ -96,6 +96,6 @@ assert.throws(function() {
}, common.expectsError({
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "ctor" argument must be of type function'
+ message: 'The "ctor" argument must be of type Function'
})
);