Skip to content

Commit 5be3e1b

Browse files
committed
fix integration tests
1 parent 8807a1c commit 5be3e1b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/client/tests/integration-tests/contentSearch.integration.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ test('Highlighting', async() => {
4545
h.setLimit({ maxWordsBeforeMatch: 3 })
4646
// You have to specify to include the offset.
4747
// Currently offset is the only way to get a result, so if not set, you won't get a result.
48-
h.setShape({ includeOffsets: true, textSnippets: { includeTextSnippets: true, includeEllipses: true } })
48+
h.setShape({
49+
offsets: { include: true },
50+
snippets: { include: true, includeMatchedWords: true, useEllipses: true }
51+
})
4952
}).build();
5053

5154
const result = await searcher.searchContents(request);

packages/client/tests/integration-tests/productSearch.integration.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ test('Highlighting', async() => {
102102
h.setHighlightable({ dataKeys: ['SomeString'] })
103103
// You have to specify to include the offset.
104104
// Currently offset is the only way to get a result, so if not set, you won't get a result.
105-
h.setShape({ includeOffsets: true, textSnippets: { includeTextSnippets: true, includeEllipses: true } })
105+
h.setShape({
106+
offsets: { include: true },
107+
snippets: { include: true, includeMatchedWords: true, useEllipses: true }
108+
})
106109
}).build();
107110
const result = await searcher.searchProducts(request);
108111

0 commit comments

Comments
 (0)