fix(core): update

This commit is contained in:
2021-10-16 21:17:02 +02:00
parent 7cbd0bd99b
commit 7a4d557724
10 changed files with 33 additions and 32 deletions

View File

@@ -80,7 +80,7 @@ class Car extends smartdata.SmartDataDbDoc<Car, Car> {
}
const createCarClass = (dbArg: smartdata.SmartdataDb) => {
smartdata.setDefaultManagerForDoc({db: dbArg}, Car);
smartdata.setDefaultManagerForDoc({ db: dbArg }, Car);
return Car;
};
@@ -92,9 +92,9 @@ tap.test('should produce a car', async () => {
tap.test('should get a car', async () => {
const car = Car.getInstance({
color: 'red'
})
})
color: 'red',
});
});
// =======================================
// close the database connection