We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3177d2d commit e012202Copy full SHA for e012202
index.js
@@ -154,7 +154,7 @@ plugin.enforceThresholds = function (opts) {
154
return (type.global && type.global.failed) || (type.each && type.each.failed);
155
};
156
157
- if (_.any(results, criteria)) {
+ if (_.some(results, criteria)) {
158
this.emit('error', new PluginError({
159
plugin: PLUGIN_NAME,
160
message: 'Coverage failed'
package.json
@@ -31,7 +31,7 @@
31
"gulp-util": "^3.0.1",
32
"istanbul": "^0.4.0",
33
"istanbul-threshold-checker": "^0.1.0",
34
- "lodash": "^3.0.1",
+ "lodash": "^4.0.0",
35
"through2": "^2.0.0"
36
},
37
"devDependencies": {
0 commit comments