✈️ 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:
abdennour 2017-02-17 20:24:28 +03:00
commit c5053cf334
6 changed files with 28 additions and 15 deletions

View file

@ -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>);