From 4a44b9f3d8f8c9b8bc350dc6be3a86327e968573 Mon Sep 17 00:00:00 2001 From: rdeepc <12953177+rdeepc@users.noreply.github.com> Date: Tue, 23 May 2023 20:48:29 -0400 Subject: [PATCH] Updated test with 3 items in array Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com> --- .../src/database/DatabaseDocumentStore.test.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/search-backend-module-pg/src/database/DatabaseDocumentStore.test.ts b/plugins/search-backend-module-pg/src/database/DatabaseDocumentStore.test.ts index 0804f643ab..c5dbb74da1 100644 --- a/plugins/search-backend-module-pg/src/database/DatabaseDocumentStore.test.ts +++ b/plugins/search-backend-module-pg/src/database/DatabaseDocumentStore.test.ts @@ -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', + }, ]); }, );