mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
docs: fix unbalanced quotes in assert.notInclude example (#1200)
Some of the examples in assert.notInclude used quotes in the string and for the string itself, so it now uses double quotes to prevent the single quote from breaking the syntax.
This commit is contained in:
parent
0064f26049
commit
ed93c9310f
1 changed files with 2 additions and 2 deletions
|
@ -946,8 +946,8 @@ module.exports = function (chai, util) {
|
|||
* the absence of a value in an array, a substring in a string, or a subset of
|
||||
* properties in an object.
|
||||
*
|
||||
* assert.notInclude([1,2,3], 4, 'array doesn't contain value');
|
||||
* assert.notInclude('foobar', 'baz', 'string doesn't contain substring');
|
||||
* assert.notInclude([1,2,3], 4, "array doesn't contain value");
|
||||
* assert.notInclude('foobar', 'baz', "string doesn't contain substring");
|
||||
* assert.notInclude({ foo: 'bar', hello: 'universe' }, { foo: 'baz' }, 'object doesn't contain property');
|
||||
*
|
||||
* Strict equality (===) is used. When asserting the absence of a value in an
|
||||
|
|
Loading…
Reference in a new issue