Save last opened wallet

This commit is contained in:
Yemel Jardi 2014-08-04 15:10:01 -03:00
commit 9b1708b88e
6 changed files with 62 additions and 1 deletions

View file

@ -148,6 +148,18 @@ describe('Storage/LocalEncrypted model', function() {
s.getName(1).should.equal('hola');
});
});
describe('#getLastOpened #setLastOpened', function() {
it('should get/set names', function() {
var s = new LocalEncrypted({
localStorage: localMock,
password: 'password'
});
s.setLastOpened('hey');
s.getLastOpened().should.equal('hey');
});
});
describe('#getWallets', function() {
it('should retreive wallets from storage', function() {
var s = new LocalEncrypted({