chai-quantifiers
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "chai-quantifiers", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Array quantifier assertions for chai assertion library", | ||
@@ -35,10 +35,10 @@ "main": "src/chai-quantifiers.js", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.4", | ||
"eslint": "^6.0.1", | ||
"eslint-config-airbnb-base": "^13.2.0", | ||
"eslint-plugin-import": "^2.18.0", | ||
"coveralls": "^3.0.9", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-should-promised": "^2.0.0", | ||
"mocha": "^6.1.4", | ||
"nyc": "^14.1.1" | ||
"mocha": "^7.0.0", | ||
"nyc": "^15.0.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "peerDependencies": { |
@@ -11,7 +11,7 @@ const chai = require('chai'); | ||
it('should be true if all items are true', () => { | ||
expect([0, 1, 2, 3]).to.containAll(item => item < 4); | ||
expect([0, 1, 2, 3]).to.containAll((item) => item < 4); | ||
}); | ||
it('should be false if one item is false', () => { | ||
expect([0, 1, 2, 3]).to.not.containAll(item => item >= 3); | ||
expect([0, 1, 2, 3]).to.not.containAll((item) => item >= 3); | ||
}); | ||
@@ -22,11 +22,11 @@ }); | ||
it('should be true if one item is true', () => { | ||
expect([0, 1, 2, 3]).to.containOne(item => item === 2); | ||
expect([0, 1, 2, 3]).to.containOne((item) => item === 2); | ||
}); | ||
it('should be true if two items are true', () => { | ||
expect([0, 1, 2, 3]).to.containOne(item => item >= 2); | ||
expect([0, 1, 2, 3]).to.containOne((item) => item >= 2); | ||
}); | ||
it('should be false if no item is true', () => { | ||
expect([0, 1, 2, 3]).to.not.containOne(item => item > 3); | ||
expect([0, 1, 2, 3]).to.not.containOne((item) => item > 3); | ||
}); | ||
@@ -37,13 +37,13 @@ }); | ||
it('should be true if one item is true', () => { | ||
expect([0, 1, 2, 3]).to.containExactlyOne(item => item === 2); | ||
expect([0, 1, 2, 3]).to.containExactlyOne((item) => item === 2); | ||
}); | ||
it('should be false if two items are true', () => { | ||
expect([0, 1, 2, 3]).to.not.containExactlyOne(item => item >= 2); | ||
expect([0, 1, 2, 3]).to.not.containExactlyOne((item) => item >= 2); | ||
}); | ||
it('should be false if no item is true', () => { | ||
expect([0, 1, 2, 3]).to.not.containExactlyOne(item => item > 3); | ||
expect([0, 1, 2, 3]).to.not.containExactlyOne((item) => item > 3); | ||
}); | ||
}); | ||
}); |
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
7074