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++;