Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Updated ValuedTextInput tests #397
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-martic-sociomantic committed Jun 25, 2018
1 parent 5c3c0e4 commit ab77f4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cfg/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {

testMatch :
[
'<rootDir>/src/Uploader/tests.js?(x)'
'<rootDir>/src/ValuedTextInput/tests.js?(x)'
],

// We should specify that jest should load all dependencies
Expand Down
28 changes: 14 additions & 14 deletions src/ValuedTextInput/tests.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,35 @@ describe( 'ValuedTextInput', () =>
let wrapper;
let instance;

beforeEach(() =>
beforeEach( () =>
{
wrapper = shallow( <ValuedTextInput /> );
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 );
} );
} );
} );

0 comments on commit ab77f4f

Please sign in to comment.