mirror of https://github.com/BTCPrivate/copay.git
Updated mocha test
This commit is contained in:
parent
8ad1fa7b02
commit
fb3a7191e5
|
@ -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() {
|
describe('#getWallets', function() {
|
||||||
it('should retreive wallets from storage', function() {
|
it('should retreive wallets from storage', function() {
|
||||||
var s = new LocalEncrypted({
|
var s = new LocalEncrypted({
|
||||||
|
|
Loading…
Reference in New Issue