Updated test with 3 items in array

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>
This commit is contained in:
rdeepc
2023-05-23 20:48:29 -04:00
parent 3c09e8d3cb
commit 4a44b9f3d8
@@ -459,6 +459,12 @@ describe('DatabaseDocumentStore', () => {
myField: ['that', 'not'],
location: 'LOCATION-1',
} as unknown as IndexableDocument,
{
title: 'Consectetur adipiscing',
text: 'Hello World',
myField: ['that', 'not', 'where'],
location: 'LOCATION-1',
} as unknown as IndexableDocument,
]);
await store.completeInsert(tx, 'my-type');
});
@@ -504,6 +510,16 @@ describe('DatabaseDocumentStore', () => {
rank: expect.any(Number),
type: 'my-type',
},
{
document: {
location: 'LOCATION-1',
text: 'Hello World',
title: 'Consectetur adipiscing',
myField: ['that', 'not', 'where'],
},
rank: expect.any(Number),
type: 'my-type',
},
]);
},
);