Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed May 8, 2018
1 parent ac473cd commit 7a0e59f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -3,9 +3,11 @@ import React from 'react'

describe('Test.Utils', () => {
describe('testPropTypes()', () => {
/* eslint-disable */
const fakeComponent = props => {
return <div size={props.size} weight={props.weight} deepObj={props.obj} onClick={() => console.log('click')}/>
}
/* eslint-enable */

it('should test that valid prop types are valid', () => {
expect(testPropTypes(fakeComponent, 'size', ['test', 1, '14px'], false)).toBeTruthy()
Expand Down
@@ -1,5 +1,8 @@
import React from 'react'

/* eslint-disable */

// spy on console error
console.error = jest.fn()

export const testPropTypes = (component, propName, testValues, expectError, otherProps) => {
Expand All @@ -16,3 +19,4 @@ export const testPropTypes = (component, propName, testValues, expectError, othe

return !_test(testValues)
}
/* eslint-enable */

0 comments on commit 7a0e59f

Please sign in to comment.