Skip to content

Commit 033a72f

Browse files
committed
Add support for t.log() in the use-t-well rule
1 parent 9acb275 commit 033a72f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/use-t-well.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ ruleTester.run('use-t-well', rule, {
5353
testCase('setImmediate(t.end);'),
5454
testCase('t.deepEqual;'),
5555
testCase('t.plan(1);'),
56+
testCase('t.log(\'Unicorns\');'),
5657
testCase('a.foo();'),
5758
// Shouldn't be triggered since it's not a test file
5859
testCase('t.foo(a, a);', false),

util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ const assertionMethodNames = Array.from(assertionMethodsNumArguments.keys());
8888

8989
exports.assertionMethodsNumArguments = assertionMethodsNumArguments;
9090
exports.assertionMethods = new Set(assertionMethodNames);
91-
exports.executionMethods = new Set(assertionMethodNames.concat(['end', 'plan']));
91+
exports.executionMethods = new Set(assertionMethodNames.concat(['end', 'plan', 'log']));

0 commit comments

Comments
 (0)