summaryrefslogtreecommitdiff
path: root/test/parallel/test-timers-throw-when-cb-not-function.js
diff options
context:
space:
mode:
authorMohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>2022-01-24 19:39:16 +0330
committerJames M Snell <jasnell@gmail.com>2022-02-05 08:36:48 -0800
commit8c4b8b201ada6b76d5306c9c7f352e45087fb4a9 (patch)
tree0f3159d3dd6aad1159292956f1fe1550fb41d06a /test/parallel/test-timers-throw-when-cb-not-function.js
parent217acb9036f39ea6088cee75f70f11602997e15f (diff)
downloadnode-new-8c4b8b201ada6b76d5306c9c7f352e45087fb4a9.tar.gz
lib: replace validator and error
Refs: https://github.com/nodejs/node/pull/41660 PR-URL: https://github.com/nodejs/node/pull/41678 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-timers-throw-when-cb-not-function.js')
-rw-r--r--test/parallel/test-timers-throw-when-cb-not-function.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-timers-throw-when-cb-not-function.js b/test/parallel/test-timers-throw-when-cb-not-function.js
index 75f49b0f3b..f7432af233 100644
--- a/test/parallel/test-timers-throw-when-cb-not-function.js
+++ b/test/parallel/test-timers-throw-when-cb-not-function.js
@@ -9,7 +9,7 @@ function doSetTimeout(callback, after) {
}
const errMessage = {
- code: 'ERR_INVALID_CALLBACK',
+ code: 'ERR_INVALID_ARG_TYPE',
name: 'TypeError'
};