From d65f80e11122afeccc4b3cc4f614aaf2130495d5 Mon Sep 17 00:00:00 2001 From: Barry Date: Mon, 19 Mar 2018 15:45:24 +0200 Subject: [PATCH] Updated vars to consts and lets in PropTypesProductionStandalone-test.js --- __tests__/PropTypesProductionStandalone-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/PropTypesProductionStandalone-test.js b/__tests__/PropTypesProductionStandalone-test.js index 5e86e0f..7030201 100644 --- a/__tests__/PropTypesProductionStandalone-test.js +++ b/__tests__/PropTypesProductionStandalone-test.js @@ -10,8 +10,8 @@ 'use strict'; describe('PropTypesProductionStandalone', function() { - var React; - var PropTypes; + let React; + let PropTypes; function resetWarningCache() { jest.resetModules(); @@ -49,7 +49,7 @@ describe('PropTypesProductionStandalone', function() { function expectThrowsInProduction(declaration, value) { resetWarningCache(); - var props = {testProp: value}; + const props = {testProp: value}; expect(() => { declaration(props, 'testProp', 'testComponent', 'prop'); }).toThrowError( @@ -226,7 +226,7 @@ describe('PropTypesProductionStandalone', function() { it('does not call validators', function() { spyOn(console, 'error'); - var spy = jest.fn(); + const spy = jest.fn(); typeCheckPass(PropTypes.string, 42); typeCheckPass(PropTypes.bool, 'whatever'); typeCheckPass(spy, 'no way');