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:
Jack Horton 2018-02-05 11:00:33 -08:00 committed by Ruben Bridgewater
parent 93bbe4e3ee
commit 1729af2ce9
No known key found for this signature in database
GPG key ID: F07496B3EB3C1762
2 changed files with 3 additions and 4 deletions

View file

@ -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
}
);