mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-03-01 03:00:52 +00:00
* 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
22 lines
610 B
TypeScript
22 lines
610 B
TypeScript
import { generateWallet, INITIAL_STATE } from 'reducers/generateWallet';
|
|
import * as generateWalletActions from 'actions/generateWallet';
|
|
|
|
describe('generateWallet reducer', () => {
|
|
it('should handle GENERATE_WALLET_CONTINUE_TO_PAPER', () => {
|
|
expect(
|
|
generateWallet(undefined, generateWalletActions.continueToPaper())
|
|
).toEqual({
|
|
...INITIAL_STATE,
|
|
activeStep: 'paper'
|
|
});
|
|
});
|
|
|
|
it('should handle GENERATE_WALLET_RESET', () => {
|
|
expect(
|
|
generateWallet(undefined, generateWalletActions.resetGenerateWallet())
|
|
).toEqual({
|
|
...INITIAL_STATE
|
|
});
|
|
});
|
|
});
|