MyCrypto/spec/pages/GenerateWallet.spec.tsx

26 lines
667 B
TypeScript

import React from 'react';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import GenerateWallet from 'containers/Tabs/GenerateWallet';
import shallowWithStore from '../utils/shallowWithStore';
import { createMockStore } from 'redux-test-utils';
Enzyme.configure({ adapter: new Adapter() });
it('render snapshot', () => {
const testState = {
form: {
walletPasswordForm: {}
},
generateWallet: {
activeStep: {},
password: {},
wallet: {}
}
};
const store = createMockStore(testState);
const component = shallowWithStore(<GenerateWallet />, store);
expect(component).toMatchSnapshot();
});