chai-quantifiers
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"name": "chai-quantifiers", | ||
"version": "1.0.0-alpha.1", | ||
"description": "quantifier assertions for chai", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Array quantifier assertions for chai", | ||
"main": "src/chai-quantifiers.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -38,4 +38,4 @@ # chai-quantifiers | ||
}); | ||
it('containOne should be true if one item is true', () => { | ||
expect([0, 1, 2, 3]).to.containOne(item => item === 2); | ||
it('containOne should be true if one or more items are true', () => { | ||
expect([0, 1, 2, 3]).to.containOne(item => item >= 2); | ||
}); | ||
@@ -42,0 +42,0 @@ it('containExactlyOne should be true if exactly one item is true', () => { |
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
7289