fix broken test
test needed to be updated to be aware that obj must have a name
This commit is contained in:
parent
aaf069e704
commit
87d9afdf91
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ if (typeof process === 'undefined' || !process.version) {
|
||||||
describe('#setFromObj', function() {
|
describe('#setFromObj', function() {
|
||||||
it('should set keys from an object', function() {
|
it('should set keys from an object', function() {
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
var obj = {test:'testval'};
|
var obj = {test:'testval', opts: {name: 'testname'}};
|
||||||
var storage = new LocalPlain();
|
var storage = new LocalPlain();
|
||||||
storage.setFromObj('walletId', obj);
|
storage.setFromObj('walletId', obj);
|
||||||
storage.get('walletId', 'test').should.equal('testval');
|
storage.get('walletId', 'test').should.equal('testval');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue