mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: validate more properties in expectsError
PR-URL: https://github.com/nodejs/node/pull/14058 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
1 parent
b55ab01b45
commit
2a621d4051
3 files changed
+60
-28
No files matched your search
@@ -166,7 +166,7 @@ assert.throws(() => {
|
||||
}, common.expectsError({ code: 'TEST_ERROR_1', type: RangeError }));
|
||||
}, common.expectsError({
|
||||
code: 'ERR_ASSERTION',
|
||||
message: /^.+ is not the expected type \S/
|
||||
message: /^.+ is not instance of \S/
|
||||
}));
|
||||
|
||||
assert.throws(() => {
|
||||
|
||||
Reference in new issue
Block a user