Skip to content

Commit

Permalink
Merge pull request #1047 from chaijs/assert-description
Browse files Browse the repository at this point in the history
docs: correct `.ok` description
  • Loading branch information
astorije committed Sep 11, 2017
2 parents 312dc2a + 37dc80d commit 9489ece
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/chai/core/assertions.js
Expand Up @@ -589,9 +589,9 @@ module.exports = function (chai, _) {
/**
* ### .ok
*
* Asserts that the target is loosely (`==`) equal to `true`. However, it's
* often best to assert that the target is strictly (`===`) or deeply equal to
* its expected value.
* Asserts that the target is a truthy value (considered `true` in boolean context).
* However, it's often best to assert that the target is strictly (`===`) or
* deeply equal to its expected value.
*
* expect(1).to.equal(1); // Recommended
* expect(1).to.be.ok; // Not recommended
Expand Down

0 comments on commit 9489ece

Please sign in to comment.