Save last opened wallet
This commit is contained in:
parent
698bd3f616
commit
9b1708b88e
6 changed files with 62 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue