fix(core): update

This commit is contained in:
2024-03-27 17:30:14 +01:00
parent 00ec2e57c2
commit 4cd284eaa9
4 changed files with 13 additions and 4 deletions

View File

@ -72,6 +72,11 @@ class Car extends smartdata.SmartDataDbDoc<Car, Car> {
}
}
tap.test('should create a new id', async () => {
const newid = await Car.getNewId();
console.log(newid);
})
tap.test('should save the car to the db', async (toolsArg) => {
const myCar = new Car('red', 'Volvo');
await myCar.save();