diff --git a/cfg/jest.config.js b/cfg/jest.config.js index e92dee3d..5f75df32 100644 --- a/cfg/jest.config.js +++ b/cfg/jest.config.js @@ -7,7 +7,7 @@ module.exports = { testMatch : [ - '/src/Uploader/tests.js?(x)' + '/src/ValuedTextInput/tests.js?(x)' ], // We should specify that jest should load all dependencies diff --git a/src/ValuedTextInput/tests.jsx b/src/ValuedTextInput/tests.jsx index 813ef151..a4424e8b 100644 --- a/src/ValuedTextInput/tests.jsx +++ b/src/ValuedTextInput/tests.jsx @@ -18,35 +18,35 @@ describe( 'ValuedTextInput', () => let wrapper; let instance; - beforeEach(() => + beforeEach( () => { wrapper = shallow( ); instance = wrapper.instance(); - }); + } ); describe( 'constructor( props )', () => { - test('should have name ValuedTextInput', () => + test( 'should have name ValuedTextInput', () => { - expect( instance.constructor.name ).toBe('ValuedTextInput'); - }); + expect( instance.constructor.name ).toBe( 'ValuedTextInput' ); + } ); } ); describe( 'render()', () => { - test('should implement the Css injector component', () => + test( 'should implement the Css injector component', () => { - expect( wrapper.find( Css ) ).toHaveLength(1); - }); + expect( wrapper.find( Css ) ).toHaveLength( 1 ); + } ); - test('should contain exactly one InputContainer', () => + test( 'should contain exactly one InputContainer', () => { - expect( wrapper.find( InputContainer ) ).toHaveLength(1); - }); + expect( wrapper.find( InputContainer ) ).toHaveLength( 1 ); + } ); - test('should contain exactly one InputField', () => + test( 'should contain exactly one InputField', () => { - expect( wrapper.find( InputField ) ).toHaveLength(1); - }); + expect( wrapper.find( InputField ) ).toHaveLength( 1 ); + } ); } ); } );