MyCrypto/spec/sagas/wallet.spec.js

15 lines
513 B
JavaScript

// break dep cycle, we have to fix it for good somehow
import translate from 'translations';
import { unlockPrivateKey } from 'sagas/wallet';
describe('Wallet saga', () => {
it('Should show error notification on decryption failure', () => {
const gen = unlockPrivateKey({
key: '0000000000000000000000000000000000000000000000000000000000000000'
});
// FIXME fragile
expect(gen.next().value.PUT.action.type).toEqual('SHOW_NOTIFICATION');
expect(gen.next().done).toBeTruthy();
});
});