diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 9190475e9b6129..630fd19688c485 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -110,9 +110,6 @@ rules: }, { selector: "ThrowStatement > CallExpression[callee.name=/Error$/]", message: "Use new keyword when throwing an Error." - }, { - selector: "CallExpression[callee.object.name='assert'][callee.property.name='fail'][arguments.length=1]", - message: "assert.fail() message should be third argument" }] no-tabs: 2 no-trailing-spaces: 2 diff --git a/doc/api/assert.md b/doc/api/assert.md index 925108b8fcf028..58c3e7c07f04a9 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -256,6 +256,7 @@ If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error message is assigned. +## assert.fail(message) ## assert.fail(actual, expected, message, operator)