MyCrypto/spec/sagas/wallet.spec.js

15 lines
513 B
JavaScript
Raw Normal View History

// break dep cycle, we have to fix it for good somehow
import translate from 'translations';
2017-07-04 12:19:04 +00:00
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();
});
});