17 lines
517 B
TypeScript
17 lines
517 B
TypeScript
import React from 'react';
|
|
import Enzyme from 'enzyme';
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
import ViewWallet from 'containers/Tabs/ViewWallet';
|
|
import shallowWithStore from '../utils/shallowWithStore';
|
|
import { createMockStore } from 'redux-test-utils';
|
|
|
|
Enzyme.configure({ adapter: new Adapter() });
|
|
|
|
it('render snapshot', () => {
|
|
const testState = {};
|
|
const store = createMockStore(testState);
|
|
const component = shallowWithStore(<ViewWallet />, store);
|
|
|
|
expect(component).toMatchSnapshot();
|
|
});
|