deep-equal-in-any-order
Advanced tools
Comparing version 1.1.20 to 2.0.0
@@ -28,12 +28,5 @@ 'use strict'; | ||
utils.addMethod(Assertion.prototype, 'equalInAnyOrder', function equalInAnyOrder(b, m) { | ||
const a = this.__flags.object; | ||
const { negate, message } = this.__flags; | ||
const msg = m || message; | ||
if (negate) { | ||
new Assertion(sortDeep(a), msg).to.not.deep.equal(sortDeep(b)); | ||
} else { | ||
new Assertion(sortDeep(a), msg).to.deep.equal(sortDeep(b)); | ||
} | ||
const a = utils.flag(this, 'object'); | ||
utils.flag(this, 'object', sortDeep(a)); | ||
this.equal(sortDeep(b), m); | ||
}); | ||
@@ -40,0 +33,0 @@ |
{ | ||
"name": "deep-equal-in-any-order", | ||
"version": "1.1.20", | ||
"version": "2.0.0", | ||
"description": "chai plugin to match objects and arrays deep equality with arrays (including nested ones) being in any order", | ||
@@ -45,2 +45,3 @@ "main": "build/index.js", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-roughly-v2": "^2.0.12", | ||
"chai-subset": "^1.6.0", | ||
@@ -47,0 +48,0 @@ "dirty-chai": "^2.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5135
21
24