mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
docs: correct .ok
description
This commit is contained in:
parent
dbeae08fe5
commit
37dc80ddd0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue