mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 18:45:38 +00:00
70a2b3ca9a
* Add disclaimer modal to footer * Remove duplicate code & unnecessary styles * Fix formatting noise * remove un-used css style * Fix tslint error & add media query for modals * Nest Media Query * Update Jest & Enzyme, Add snapshot tests * Fix tslint errors in /spec, Update mock localstorage * Update types in tests, Fix tslint error * Specify module versions for browser * Update sendTransaction snapshot
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();
|
|
});
|