1313jest . autoMockOff ( ) ;
1414jest . mock ( '../../Documentation' ) ;
1515
16- describe ( 'propTypeHandler' , function ( ) {
16+ describe ( 'propTypeHandler' , ( ) => {
1717 var utils ;
1818 var getPropTypeMock ;
1919 var documentation ;
2020 var propTypeHandler ;
2121
22- beforeEach ( function ( ) {
22+ beforeEach ( ( ) => {
2323 utils = require ( '../../../tests/utils' ) ;
2424 getPropTypeMock = jest . genMockFunction ( ) . mockImplementation ( ( ) => ( { } ) ) ;
2525 jest . setMock ( '../../utils/getPropType' , getPropTypeMock ) ;
@@ -38,7 +38,7 @@ describe('propTypeHandler', function() {
3838 ) ;
3939 }
4040
41- it ( 'passes the correct argument to getPropType' , function ( ) {
41+ it ( 'passes the correct argument to getPropType' , ( ) => {
4242 var definition = parse (
4343 '({propTypes: {foo: PropTypes.bool, abc: PropTypes.xyz}})'
4444 ) ;
@@ -52,7 +52,7 @@ describe('propTypeHandler', function() {
5252 expect ( getPropTypeMock ) . toBeCalledWith ( xyzPath ) ;
5353 } ) ;
5454
55- it ( 'finds definitions via React.PropTypes' , function ( ) {
55+ it ( 'finds definitions via React.PropTypes' , ( ) => {
5656 var definition = parse ( [
5757 '({' ,
5858 ' propTypes: {' ,
@@ -76,7 +76,7 @@ describe('propTypeHandler', function() {
7676 } ) ;
7777 } ) ;
7878
79- it ( 'finds definitions via the ReactPropTypes module' , function ( ) {
79+ it ( 'finds definitions via the ReactPropTypes module' , ( ) => {
8080 var definition = parse ( [
8181 '({' ,
8282 ' propTypes: {' ,
@@ -95,7 +95,7 @@ describe('propTypeHandler', function() {
9595 } ) ;
9696 } ) ;
9797
98- it ( 'detects whether a prop is required' , function ( ) {
98+ it ( 'detects whether a prop is required' , ( ) => {
9999 var definition = parse ( [
100100 '({' ,
101101 ' propTypes: {' ,
@@ -119,7 +119,7 @@ describe('propTypeHandler', function() {
119119 } ) ;
120120 } ) ;
121121
122- it ( 'only considers definitions from React or ReactPropTypes' , function ( ) {
122+ it ( 'only considers definitions from React or ReactPropTypes' , ( ) => {
123123 var definition = parse ( [
124124 '({' ,
125125 ' propTypes: {' ,
@@ -145,7 +145,7 @@ describe('propTypeHandler', function() {
145145 } ) ;
146146 } ) ;
147147
148- it ( 'understands the spread operator' , function ( ) {
148+ it ( 'understands the spread operator' , ( ) => {
149149 var definition = parse ( [
150150 'var Foo = require("Foo.react");' ,
151151 'var props = {bar: PropTypes.bool};' ,
@@ -172,7 +172,7 @@ describe('propTypeHandler', function() {
172172 } ) ;
173173 } ) ;
174174
175- it ( 'resolves variables' , function ( ) {
175+ it ( 'resolves variables' , ( ) => {
176176 var definition = parse ( [
177177 'var props = {bar: PropTypes.bool};' ,
178178 '({' ,
@@ -189,7 +189,7 @@ describe('propTypeHandler', function() {
189189 } ) ;
190190 } ) ;
191191
192- it ( 'does not error if propTypes cannot be found' , function ( ) {
192+ it ( 'does not error if propTypes cannot be found' , ( ) => {
193193 var definition = parse ( [
194194 '({' ,
195195 ' fooBar: 42' ,
0 commit comments