From 38f5068684ccab9acf120731305da3f2fe7eeeff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Gonz=C3=A1lez?= Date: Thu, 5 Dec 2019 16:25:42 +0000 Subject: [PATCH] tidy tests --- .../__tests__/no-production-logging-test.internal.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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: [ {