chai-quantifiers
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "chai-quantifiers", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Array quantifier assertions for chai assertion library", | ||
@@ -35,6 +35,6 @@ "main": "src/chai-quantifiers.js", | ||
"chai": "^4.1.2", | ||
"coveralls": "^3.0.1", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.12.0", | ||
"coveralls": "^3.0.2", | ||
"eslint": "^5.3.0", | ||
"eslint-config-airbnb-base": "^13.0.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-promise": "^3.8.0", | ||
@@ -41,0 +41,0 @@ "eslint-plugin-should-promised": "^2.0.0", |
@@ -1,7 +0,8 @@ | ||
const evaluate = (array, predicate) => | ||
array.reduce( | ||
(acc, item, i) => | ||
(predicate(item) ? { t: [...acc.t, i], f: acc.f } : { t: acc.t, f: [...acc.f, i] }), | ||
{ t: [], f: [] } | ||
); | ||
const evaluate = (array, predicate) => array.reduce( | ||
(acc, item, i) => ( | ||
predicate(item) | ||
? { t: [...acc.t, i], f: acc.f } | ||
: { t: acc.t, f: [...acc.f, i] } | ||
), { t: [], f: [] } | ||
); | ||
@@ -8,0 +9,0 @@ const plugin = (chai) => { |
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
7057
73