diff options
Diffstat (limited to 'doc/api/assert.md')
-rw-r--r-- | doc/api/assert.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index 2ab93c8de0..74fd2a37d0 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -554,6 +554,7 @@ Note that `error` can not be a string. If a string is provided as the second argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes: +<!-- eslint-disable assert-throws-arguments --> ```js // THIS IS A MISTAKE! DO NOT DO THIS! assert.throws(myFunction, 'missing foo', 'did not throw with expected message'); |