fix: Update Tests for v15.5

This commit is contained in:
sqwk
2017-03-08 11:48:54 +01:00
parent acb5edf962
commit 162688615a

View File

@@ -2,10 +2,15 @@ import Lowdb = require('lowdb');
const db = new Lowdb('db.json');
db.defaults({ someObject: {}, anotherObject: {} }).value();
db.defaults({ someObject: {}, anotherObject: {} }).write();
db.get('someObject').set('foo' , 'bar').value();
db.get('anotherObject').set('foo' , 'bar').value();
db.set('singleValue', 'foo').value();
db.get('someObject').set('foo' , 'bar').write();
db.get('someObject.foo').value();
db.get('anotherObject').set('foo' , 'bar').write();
db.get('anotherObject.foo').value();
db.set('singleValue', 'foo').write();
db.get('singleValue').value();
console.log(db.getState());