mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-17 22:50:56 +00:00
13 lines
420 B
JavaScript
13 lines
420 B
JavaScript
|
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();
|
||
|
});
|
||
|
});
|