Skip to content

Commit 8ec4e28

Browse files
committed
make tests pass
1 parent f18c3f5 commit 8ec4e28

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ test('Highlighting', async() => {
102102
h.setHighlightable({ dataKeys: ['Description'] })
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 } })
105+
h.setShape({ includeOffsets: true, textSnippets: { includeTextSnippets: true, includeEllipses: true } })
106106
}).build();
107107
const result = await searcher.searchProducts(request);
108108

packages/client/tests/unit-tests/builders/search/contentSearchBuilder.unit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ test('searchHightlighting', () => {
2828
h.setShape({
2929
includeOffsets: true,
3030
textSnippets: {
31+
includeEllipses: true,
3132
includeTextSnippets: true
3233
}
3334
});

0 commit comments

Comments
 (0)