Skip to content

Commit

Permalink
test: add more asserts to test-internal-errors
Browse files Browse the repository at this point in the history
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 MylesBorins committed Jan 8, 2018
1 parent d7e536d commit 015c146
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/parallel/test-internal-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ common.expectsError(() => {
message: /^Error for testing 2/ });
}, {
code: 'ERR_ASSERTION',
type: assert.AssertionError,
message: /.+ does not match \S/
});

Expand Down Expand Up @@ -233,6 +234,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$/
});

Expand All @@ -247,6 +249,7 @@ common.expectsError(
() => errors.message('ERR_MISSING_ARGS'),
{
code: 'ERR_ASSERTION',
type: assert.AssertionError,
message: /^At least one arg needs to be specified$/
});

Expand Down

0 comments on commit 015c146

Please sign in to comment.