mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: remove common.fail()
common.fail() was added to paste over issues with assert.fail() function signature. assert.fail() has been updated to accept a single argument so common.fail() is no longer necessary. PR-URL: https://github.com/nodejs/node/pull/12293 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
6f202ef857
commit
06c29a66d4
51 changed files with 101 additions and 106 deletions
|
@ -127,7 +127,7 @@ const s = http.createServer(common.mustCall((req, res) => {
|
|||
break;
|
||||
|
||||
default:
|
||||
common.fail('Unknown test');
|
||||
assert.fail('Unknown test');
|
||||
}
|
||||
|
||||
res.statusCode = 201;
|
||||
|
@ -174,7 +174,7 @@ function nextTest() {
|
|||
break;
|
||||
|
||||
default:
|
||||
common.fail('Unknown test');
|
||||
assert.fail('Unknown test');
|
||||
}
|
||||
|
||||
response.setEncoding('utf8');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue