#import test

This commit is contained in:
Matias Alejo Garcia 2014-10-21 12:03:09 -03:00
commit 02d5604497
4 changed files with 40 additions and 14 deletions

View file

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