diff --git a/scripts/eslint-rules/__tests__/no-production-logging-test.internal.js b/scripts/eslint-rules/__tests__/no-production-logging-test.internal.js index 5d31370c42..b62a9ce470 100644 --- a/scripts/eslint-rules/__tests__/no-production-logging-test.internal.js +++ b/scripts/eslint-rules/__tests__/no-production-logging-test.internal.js @@ -15,24 +15,24 @@ const ruleTester = new RuleTester(); ruleTester.run('no-production-logging', rule, { valid: [ + /* wrapped calls */ { - code: 'if (__DEV__) {warningWithoutStack(test)}', + code: 'if (__DEV__) { warningWithoutStack(test) }', }, { - code: 'if (__DEV__) {warning(test)}', + code: 'if (__DEV__) { warning(test) }', }, + /* calls wrapped on an outer bound */ { code: 'if (__DEV__) { if (potato) { while (true) { warning(test) }}}', }, + /* don't do anything to arbitrary fn's or invariants */ { code: 'normalFunctionCall(test)', }, { code: 'invariant(test)', }, - { - code: 'if (__DEV__) {normalFunctionCall(test)}', - }, ], invalid: [ {