mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
fix: Update Tests for v15.5
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user