From a5acc2fe4e831bbe4b79cc9d4859c3817da36876 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 9 Sep 2020 05:00:09 +0000 Subject: [PATCH] fix(core): update --- test/test.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/test.ts b/test/test.ts index 3e118f4..4e0507f 100644 --- a/test/test.ts +++ b/test/test.ts @@ -102,10 +102,18 @@ tap.test('expect to get instance of Car', async () => { const myCars = await Car.getInstances({ 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({ 'deepData.sodeep': 'yes', } as any); - expect(myCars[0].color).to.equal('red'); console.log(`took ${Date.now() - timeStart}`); counter++; } while (counter < 2000);