shoud-cli 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/shoud.js +1 -0
- package/package.json +1 -1
- package/src/job/receipt.js +1 -1
package/bin/shoud.js
CHANGED
package/package.json
CHANGED
package/src/job/receipt.js
CHANGED
|
@@ -22,7 +22,7 @@ function delta(before, after) {
|
|
|
22
22
|
function isImprovement(before, after) {
|
|
23
23
|
// Heuristic: "pass", "0 errors", "✓" are good
|
|
24
24
|
const good = /^(0|pass|passed|ok|✓|clean)/i.test(String(after));
|
|
25
|
-
const bad = /^(fail|failed|error
|
|
25
|
+
const bad = /^(fail|failed|error|✗)/i.test(String(before)) && /^\d+/.test(String(before));
|
|
26
26
|
return good || bad;
|
|
27
27
|
}
|
|
28
28
|
|