fix(core): update

This commit is contained in:
2022-06-14 22:02:57 +02:00
parent f726cf4c5b
commit 2fcd3f1550
4 changed files with 1190 additions and 654 deletions

View File

@ -55,6 +55,9 @@ class Car extends smartdata.SmartDataDbDoc<Car, Car> {
@smartdata.svDb()
public brand: string;
@smartdata.svDb()
public testBuffer = Buffer.from('hello');
@smartdata.svDb()
deepData = {
sodeep: 'yes',
@ -67,7 +70,7 @@ class Car extends smartdata.SmartDataDbDoc<Car, Car> {
}
}
tap.test('should save the car to the db', async () => {
tap.test('should save the car to the db', async (toolsArg) => {
const myCar = new Car('red', 'Volvo');
await myCar.save();
@ -75,6 +78,9 @@ tap.test('should save the car to the db', async () => {
await myCar2.save();
let counter = 0;
const gottenCarInstance = await Car.getInstance({});
console.log(gottenCarInstance.testBuffer);
process.memoryUsage();
do {
const myCar3 = new Car('red', 'Renault');