#import test
This commit is contained in:
parent
86d9e9ee2c
commit
02d5604497
4 changed files with 40 additions and 14 deletions
|
|
@ -420,10 +420,11 @@ describe('Storage model', function() {
|
|||
should.not.exist(wo);
|
||||
});
|
||||
it('should call save / restorePassphrase', function() {
|
||||
var wo = s.decrypt(encryptedLegacy1, 'xxx');
|
||||
sinon.spy(s,'savePassphrase');
|
||||
sinon.spy(s,'restorePassphrase');
|
||||
s.decrypt(encryptedLegacy1, 'xxx');
|
||||
s.savePassphrase.calledOnce.should.equal(true);
|
||||
s.restorePassphrase.calledOnce.should.equal(true);
|
||||
should.not.exist(wo);
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue