Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed93c93

Browse files
haykam821keithamus
authored andcommitted
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.
1 parent 0064f26 commit ed93c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/chai/interface/assert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,8 @@ module.exports = function (chai, util) {
946946
* the absence of a value in an array, a substring in a string, or a subset of
947947
* properties in an object.
948948
*
949-
* assert.notInclude([1,2,3], 4, 'array doesn't contain value');
950-
* assert.notInclude('foobar', 'baz', 'string doesn't contain substring');
949+
* assert.notInclude([1,2,3], 4, "array doesn't contain value");
950+
* assert.notInclude('foobar', 'baz', "string doesn't contain substring");
951951
* assert.notInclude({ foo: 'bar', hello: 'universe' }, { foo: 'baz' }, 'object doesn't contain property');
952952
*
953953
* Strict equality (===) is used. When asserting the absence of a value in an

0 commit comments

Comments
 (0)