-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.
Description
Documentation for assert
describes:
assert(value[, message]), assert.ok(value[, message])
Tests if value is truthy. It is equivalent to assert.equal(true, !!value, message).
But assert.equal
parameters are actual value first, then expected value. The documentation should read:
assert(value[, message]), assert.ok(value[, message])#
Tests if value is truthy. It is equivalent to assert.equal(!!value, true, message).
Metadata
Metadata
Assignees
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.