diff --git a/packages/blockchain-wallet-v4-frontend/src/utils/test.util.spec.js b/packages/blockchain-wallet-v4-frontend/src/utils/test.util.spec.js index 9d1ad68f1a0..d7a3ea7040d 100644 --- a/packages/blockchain-wallet-v4-frontend/src/utils/test.util.spec.js +++ b/packages/blockchain-wallet-v4-frontend/src/utils/test.util.spec.js @@ -3,9 +3,11 @@ import React from 'react' describe('Test.Utils', () => { describe('testPropTypes()', () => { + /* eslint-disable */ const fakeComponent = props => { return
console.log('click')}/> } + /* eslint-enable */ it('should test that valid prop types are valid', () => { expect(testPropTypes(fakeComponent, 'size', ['test', 1, '14px'], false)).toBeTruthy() diff --git a/packages/blockchain-wallet-v4-frontend/src/utils/test.utils.js b/packages/blockchain-wallet-v4-frontend/src/utils/test.utils.js index 2989866b0b2..b0dec64e6b6 100644 --- a/packages/blockchain-wallet-v4-frontend/src/utils/test.utils.js +++ b/packages/blockchain-wallet-v4-frontend/src/utils/test.utils.js @@ -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) => { @@ -16,3 +19,4 @@ export const testPropTypes = (component, propName, testValues, expectError, othe return !_test(testValues) } +/* eslint-enable */