fix broken test

test needed to be updated to be aware that obj must have a name
This commit is contained in:
Ryan X. Charles 2014-06-10 07:55:58 -07:00
parent aaf069e704
commit 87d9afdf91
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if (typeof process === 'undefined' || !process.version) {
describe('#setFromObj', function() {
it('should set keys from an object', function() {
localStorage.clear();
var obj = {test:'testval'};
var obj = {test:'testval', opts: {name: 'testname'}};
var storage = new LocalPlain();
storage.setFromObj('walletId', obj);
storage.get('walletId', 'test').should.equal('testval');