Skip to content

Commit

Permalink
Updated vars to consts and lets in PropTypesProductionStandalone-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry committed Mar 19, 2018
1 parent c10c93f commit d65f80e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/PropTypesProductionStandalone-test.js
Expand Up @@ -10,8 +10,8 @@
'use strict';

describe('PropTypesProductionStandalone', function() {
var React;
var PropTypes;
let React;
let PropTypes;

function resetWarningCache() {
jest.resetModules();
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit d65f80e

Please sign in to comment.