Permalink
Browse files

test: add more asserts to `test-internal-errors`

PR-URL: #13686
Fixes: #13682
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information...
refack authored and BridgeAR committed Jun 19, 2017
1 parent 29d99c1 commit 15016f227b371c85dc74c0ad3d773ce9814fdfb3
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/parallel/test-internal-errors.js
@@ -187,6 +187,7 @@ common.expectsError(() => {
message: /^Error for testing 2/ });
}, {
code: 'ERR_ASSERTION',
type: assert.AssertionError,
message: /.+ does not match \S/
});
@@ -237,6 +238,7 @@ common.expectsError(
() => errors.message('ERR_INVALID_URL_SCHEME', [[]]),
{
code: 'ERR_ASSERTION',
type: assert.AssertionError,
message: /^At least one expected value needs to be specified$/
});
@@ -251,6 +253,7 @@ common.expectsError(
() => errors.message('ERR_MISSING_ARGS'),
{
code: 'ERR_ASSERTION',
type: assert.AssertionError,
message: /^At least one arg needs to be specified$/
});

0 comments on commit 15016f2

Please sign in to comment.