Updated mocha test

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-07 20:40:39 -03:00
parent 8ad1fa7b02
commit fb3a7191e5
1 changed files with 13 additions and 0 deletions

View File

@ -160,6 +160,19 @@ describe('Storage/LocalEncrypted model', function() {
});
});
describe('#WalletIsOpened', function() {
it('should get/set/remove opened', function() {
var s = new LocalEncrypted({
localStorage: localMock,
password: 'password'
});
s.setIsOpen('walletId');
s.getIsOpen('walletId').should.equal(true);
s.removeIsOpen('walletId');
should.not.exist(s.getIsOpen('walletId'));
});
});
describe('#getWallets', function() {
it('should retreive wallets from storage', function() {
var s = new LocalEncrypted({