Updated test with 3 items in array
Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>
This commit is contained in:
@@ -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',
|
||||
},
|
||||
]);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user