Trying to import a wallet with a wrong password
This commit is contained in:
parent
5c1935e04b
commit
039f0ed461
3 changed files with 8 additions and 8 deletions
|
|
@ -179,11 +179,11 @@ describe('WalletFactory model', function() {
|
|||
|
||||
should.exist(w);
|
||||
wallet.should.equal(w);
|
||||
|
||||
});
|
||||
it('should import with a wrong password', function() {
|
||||
wf.fromEncryptedObj = sinon.stub().returns(null);
|
||||
(function() {
|
||||
wf.import("encrypted", "password")
|
||||
}).should.throw();
|
||||
var w = wf.import("encrypted", "passwordasdfasdf");
|
||||
should.not.exist(w);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue