mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: convert new tests to use error types
PR-URL: https://github.com/nodejs/node/pull/18581 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
93bbe4e3ee
commit
1729af2ce9
2 changed files with 3 additions and 4 deletions
|
@ -17,8 +17,7 @@ assert.strictEqual(global.console, 42);
|
|||
common.expectsError(
|
||||
() => console.log('foo'),
|
||||
{
|
||||
type: TypeError,
|
||||
message: 'console.log is not a function'
|
||||
type: TypeError
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue