From fb3a7191e5900ac7bfd7ddc968325c768cde5839 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 7 Aug 2014 20:40:39 -0300 Subject: [PATCH] Updated mocha test --- test/test.storage.LocalEncrypted.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/test.storage.LocalEncrypted.js b/test/test.storage.LocalEncrypted.js index 2212ab41f..41885f298 100644 --- a/test/test.storage.LocalEncrypted.js +++ b/test/test.storage.LocalEncrypted.js @@ -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({