✈️ migrate to static properies of ES7
proptypes should not be capital Add unit-test to check if separator has default value
This commit is contained in:
parent
33fdb393c7
commit
c5053cf334
6 changed files with 28 additions and 15 deletions
|
|
@ -34,10 +34,16 @@ describe('CSVLink', () => {
|
|||
]
|
||||
};
|
||||
});
|
||||
|
||||
it(`renders without error if required props are passed`, () => {
|
||||
const wrapper = shallow( <CSVLink {...minProps} > Click here </CSVLink>);
|
||||
expect(wrapper.length).toEqual(1);
|
||||
});
|
||||
});
|
||||
|
||||
it(`has comma as default separator `, () => {
|
||||
const wrapper = mount( <CSVLink {...minProps} > Click here </CSVLink>);
|
||||
expect(wrapper.props().separator).toEqual(',');
|
||||
})
|
||||
|
||||
it(`renders anchor tag`, () => {
|
||||
const wrapper = shallow( <CSVLink {...minProps} > Click here </CSVLink>);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue