mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-17 14:40:55 +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();
|
|
});
|
|
});
|