Skip to content

Commit be1c737

Browse files
committed
migration
1 parent 28ca8d4 commit be1c737

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

front/src/hoc/withEnterAnimation/__tests__/withEnterAnimation.test.js renamed to front/src/hoc/withEnterAnimation/__tests__/withEnterAnimation.test.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
// @flow
2-
3-
// #region imports
41
import React from 'react';
5-
import renderer from 'react-test-renderer'; // needed both for snpashot testing but also to prevent errors from enzyme
2+
import {shallow} from 'enzyme'
63
import withEnterAnimation from '../withEnterAnimation';
7-
// #endregion
4+
85

96
describe('withEnterAnimation HOC', () => {
107
it('renders as expected', () => {
118
const DummyComponent = () => <p>component</p>;
129

13-
const component = renderer
14-
.create(withEnterAnimation()(DummyComponent))
15-
.toJSON();
10+
const component = shallow(withEnterAnimation()(DummyComponent));
1611
expect(component).toMatchSnapshot();
1712
});
1813
});

0 commit comments

Comments
 (0)