mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
Revise documentation wording
This commit is contained in:
parent
bbd3aafbe5
commit
c448e1de7c
1 changed files with 8 additions and 9 deletions
|
@ -185,9 +185,8 @@ module.exports = function (chai, _) {
|
|||
* expect(false).to.not.be.ok;
|
||||
* expect(undefined).to.not.be.ok;
|
||||
* expect(null).to.not.be.ok;
|
||||
* expect(null).to.not.be.ok;
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* expect('everthing').to.be.ok();
|
||||
*
|
||||
|
@ -210,7 +209,7 @@ module.exports = function (chai, _) {
|
|||
* expect(true).to.be.true;
|
||||
* expect(1).to.not.be.true;
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* expect(true).to.be.true();
|
||||
*
|
||||
|
@ -235,7 +234,7 @@ module.exports = function (chai, _) {
|
|||
* expect(false).to.be.false;
|
||||
* expect(0).to.not.be.false;
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* expect(false).to.be.false();
|
||||
*
|
||||
|
@ -260,7 +259,7 @@ module.exports = function (chai, _) {
|
|||
* expect(null).to.be.null;
|
||||
* expect(undefined).not.to.be.null;
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* expect(null).to.be.null();
|
||||
*
|
||||
|
@ -284,7 +283,7 @@ module.exports = function (chai, _) {
|
|||
* expect(undefined).to.be.undefined;
|
||||
* expect(null).to.not.be.undefined;
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* expect(undefined).to.be.undefined();
|
||||
*
|
||||
|
@ -313,7 +312,7 @@ module.exports = function (chai, _) {
|
|||
* expect(bar).to.not.exist;
|
||||
* expect(baz).to.not.exist;
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* expect(foo).to.exist();
|
||||
*
|
||||
|
@ -341,7 +340,7 @@ module.exports = function (chai, _) {
|
|||
* expect('').to.be.empty;
|
||||
* expect({}).to.be.empty;
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* expect([]).to.be.empty();
|
||||
*
|
||||
|
@ -375,7 +374,7 @@ module.exports = function (chai, _) {
|
|||
* expect(arguments).to.be.arguments;
|
||||
* }
|
||||
*
|
||||
* Can also be used in function form which will satiate certain linter errors.
|
||||
* Can also be used as a function, which prevents some linter errors.
|
||||
*
|
||||
* function test () {
|
||||
* expect(arguments).to.be.arguments();
|
||||
|
|
Loading…
Reference in a new issue