fix(core): update
This commit is contained in:
parent
9c81257101
commit
a5acc2fe4e
10
test/test.ts
10
test/test.ts
@ -102,10 +102,18 @@ tap.test('expect to get instance of Car', async () => {
|
||||
const myCars = await Car.getInstances<Car>({
|
||||
brand: 'Volvo',
|
||||
});
|
||||
console.log(`took ${Date.now() - timeStart}`);
|
||||
counter++;
|
||||
} while (counter < 2000);
|
||||
});
|
||||
|
||||
tap.test('expect to get instance of Car', async () => {
|
||||
let counter = 0;
|
||||
do {
|
||||
const timeStart = Date.now();
|
||||
const myCars2 = await Car.getInstances<Car>({
|
||||
'deepData.sodeep': 'yes',
|
||||
} as any);
|
||||
expect(myCars[0].color).to.equal('red');
|
||||
console.log(`took ${Date.now() - timeStart}`);
|
||||
counter++;
|
||||
} while (counter < 2000);
|
||||
|
Loading…
Reference in New Issue
Block a user