Skip to content

Commit 38f5068

Browse files
committed
tidy tests
1 parent 46e17a9 commit 38f5068

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/eslint-rules/__tests__/no-production-logging-test.internal.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ const ruleTester = new RuleTester();
1515

1616
ruleTester.run('no-production-logging', rule, {
1717
valid: [
18+
/* wrapped calls */
1819
{
19-
code: 'if (__DEV__) {warningWithoutStack(test)}',
20+
code: 'if (__DEV__) { warningWithoutStack(test) }',
2021
},
2122
{
22-
code: 'if (__DEV__) {warning(test)}',
23+
code: 'if (__DEV__) { warning(test) }',
2324
},
25+
/* calls wrapped on an outer bound */
2426
{
2527
code: 'if (__DEV__) { if (potato) { while (true) { warning(test) }}}',
2628
},
29+
/* don't do anything to arbitrary fn's or invariants */
2730
{
2831
code: 'normalFunctionCall(test)',
2932
},
3033
{
3134
code: 'invariant(test)',
3235
},
33-
{
34-
code: 'if (__DEV__) {normalFunctionCall(test)}',
35-
},
3636
],
3737
invalid: [
3838
{

0 commit comments

Comments
 (0)