You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforces passing the right number of arguments to assertion methods like `t.is()`. This rule can optionally also enforce or forbid the use of assertion messages.
13
+
Enforces passing the right number of arguments to assertion methods like `t.is()`. Also validates that `t.plan()` is called with a non-negative integer. This rule can optionally also enforce or forbid the use of assertion messages.
14
14
15
15
Assertion messages are optional arguments that can be given to any assertion call to improve the error message, should the assertion fail.
16
16
@@ -25,6 +25,8 @@ test('1', t => {
25
25
t.is(value); // Not enough arguments
26
26
t.is(value, expected, message, extra); // Too many arguments
27
27
t.is(value, expected, false); // Assertion message is not a string
28
+
t.plan('1'); // Argument is not a non-negative integer
29
+
t.plan(2.5); // Argument is not a non-negative integer
0 commit comments