MyCrypto/spec/pages/ViewWallet.spec.tsx

17 lines
517 B
TypeScript
Raw Normal View History

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();
});