Skip to content

Commit 15016f2

Browse files
refackBridgeAR
authored andcommitted
test: add more asserts to test-internal-errors
PR-URL: nodejs#13686 Fixes: nodejs#13682 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 29d99c1 commit 15016f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/parallel/test-internal-errors.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ common.expectsError(() => {
187187
message: /^Error for testing 2/ });
188188
}, {
189189
code: 'ERR_ASSERTION',
190+
type: assert.AssertionError,
190191
message: /.+ does not match \S/
191192
});
192193

@@ -237,6 +238,7 @@ common.expectsError(
237238
() => errors.message('ERR_INVALID_URL_SCHEME', [[]]),
238239
{
239240
code: 'ERR_ASSERTION',
241+
type: assert.AssertionError,
240242
message: /^At least one expected value needs to be specified$/
241243
});
242244

@@ -251,6 +253,7 @@ common.expectsError(
251253
() => errors.message('ERR_MISSING_ARGS'),
252254
{
253255
code: 'ERR_ASSERTION',
256+
type: assert.AssertionError,
254257
message: /^At least one arg needs to be specified$/
255258
});
256259

0 commit comments

Comments
 (0)