test: fix wrong error classes passed in as type

PR-URL: https://github.com/nodejs/node/pull/13686
Fixes: https://github.com/nodejs/node/issues/13682
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Ruben Bridgewater 2017-12-11 03:56:41 -02:00
parent 22760f31be
commit f26cabbe24
No known key found for this signature in database
GPG key ID: F07496B3EB3C1762
12 changed files with 45 additions and 16 deletions

View file

@ -10,7 +10,7 @@ const assert = require('assert');
},
{
code: 'ERR_INVALID_ARG_TYPE',
type: Error
type: TypeError
});
});
@ -20,7 +20,7 @@ common.expectsError(
},
{
code: 'ERR_INVALID_ARG_TYPE',
type: Error
type: TypeError
});
const okInputs = [1, -1, '1', '-1', Date.now()];