Skip to content

Commit

Permalink
docs: fix unbalanced quotes in assert.notInclude example (#1200)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
haykam821 authored and keithamus committed Sep 25, 2018
1 parent 0064f26 commit ed93c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/chai/interface/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed93c93

Please sign in to comment.