Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set support in same members #1583

Merged
merged 9 commits into from
Feb 12, 2024
Prev Previous commit
Next Next commit
Move JSDoc to it's function
  • Loading branch information
koddsson committed Feb 11, 2024
commit 867230d49d2e04141bea99713746259f625405ad
16 changes: 8 additions & 8 deletions lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,14 @@ function an (type, msg) {
Assertion.addChainableMethod('an', an);
Assertion.addChainableMethod('a', an);

function SameValueZero(a, b) {
return (_.isNaN(a) && _.isNaN(b)) || a === b;
}

function includeChainingBehavior () {
flag(this, 'contains', true);
}

/**
* ### .include(val[, msg])
*
Expand Down Expand Up @@ -484,14 +492,6 @@ Assertion.addChainableMethod('a', an);
* @api public
*/

function SameValueZero(a, b) {
return (_.isNaN(a) && _.isNaN(b)) || a === b;
}

function includeChainingBehavior () {
flag(this, 'contains', true);
}

function include (val, msg) {
if (msg) flag(this, 'message', msg);

Expand Down