From d07c6f9739360954e8e6c6f16bf061a7f64bda9c Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 15 Jan 2018 23:37:09 +0100 Subject: assert: throw without args in ok `assert.ok()` should always receive a value. Otherwise there might be a bug or it was intended to use `assert.fail()`. PR-URL: https://github.com/nodejs/node/pull/17581 Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Ron Korving --- doc/api/assert.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/api/assert.md') diff --git a/doc/api/assert.md b/doc/api/assert.md index f3202c214b..efc0f4e078 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -645,6 +645,11 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the ## assert.ok(value[, message]) * `value` {any} * `message` {any} -- cgit v1.2.3