supertape 6.9.4 → 6.10.0

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/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 2021.10.23, v6.10.0
2
+
3
+ feature:
4
+ - (supertape) checkAssertionsCount: add ability to check that assertions count not less then one
5
+
6
+
1
7
  2021.10.19, v6.9.4
2
8
 
3
9
  fix:
package/lib/validator.js CHANGED
@@ -96,6 +96,9 @@ function checkAssertionsCount(msg, filtered, options) {
96
96
  if (assertionsCount > 1)
97
97
  return [`Only one assertion per test allowed, looks like you have more`, at];
98
98
 
99
+ if (!assertionsCount)
100
+ return [`Only one assertion per test allowed, looks like you have none`, at];
101
+
99
102
  return [];
100
103
  }
101
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "6.9.4",
3
+ "version": "6.10.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "tape compatible test runner with superpowers",
6
6
  "homepage": "http://github.com/coderaiser/supertape",