Converted DateInput into functional component

This commit is contained in:
Alejandro Celaya 2018-11-01 09:16:18 +01:00
parent cccf57a35a
commit 70ebb0362a
2 changed files with 33 additions and 33 deletions

View file

@ -13,12 +13,7 @@ describe('<DateInput />', () => {
return wrapped;
};
afterEach(() => {
if (wrapped !== undefined) {
wrapped.unmount();
wrapped = undefined;
}
});
afterEach(() => wrapped && wrapped.unmount());
it('wrapps a DatePicker', () => {
wrapped = createComponent();