MyCrypto/spec/sagas/wallet.spec.js
crptm 780f3ba94f balance fetching (#41)
* balance fetching

* fix tests

* bump deps

* validate custom token form

* equiv values

* fix rates saga naming

* address review comments
2017-07-13 16:02:39 -05:00

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();
});
});