From f7342962f4de666aebcdf00f1e564ee8265815ed Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 9 Sep 2020 04:51:56 +0000 Subject: [PATCH] fix(core): update --- test/test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test.ts b/test/test.ts index 542f7cc..3e118f4 100644 --- a/test/test.ts +++ b/test/test.ts @@ -66,6 +66,11 @@ class Car extends smartdata.SmartDataDbDoc { @smartdata.svDb() public brand: string; + @smartdata.svDb() + deepData = { + sodeep: 'yes' + }; + constructor(colorArg: string, brandArg: string) { super(); this.color = colorArg; @@ -97,6 +102,9 @@ tap.test('expect to get instance of Car', async () => { const myCars = await Car.getInstances({ brand: 'Volvo', }); + const myCars2 = await Car.getInstances({ + 'deepData.sodeep': 'yes', + } as any); expect(myCars[0].color).to.equal('red'); console.log(`took ${Date.now() - timeStart}`); counter++;