Skip to content

Commit 06789fe

Browse files
Striftflevi29
authored andcommitted
Fix test for attributesToSearchOn set to null
1 parent a8f7250 commit 06789fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/get_search.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ describe.each([
167167
const client = await getClient(permission);
168168

169169
const response = await client.index(index.uid).searchGet("prince", {
170-
attributesToSearchOn: null,
170+
attributesToSearchOn: null, // same as without the option
171171
});
172172

173-
expect(response).toMatchSnapshot();
173+
expect(response.hits.length).toEqual(2);
174174
});
175175

176176
test(`${permission} key: search with options`, async () => {

tests/search.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,10 +652,10 @@ describe.each([
652652
const client = await getClient(permission);
653653

654654
const response = await client.index(index.uid).search("prince", {
655-
attributesToSearchOn: null,
655+
attributesToSearchOn: null, // same as without the option
656656
});
657657

658-
expect(response).toMatchSnapshot();
658+
expect(response.hits.length).toEqual(2);
659659
});
660660

661661
test(`${permission} key: search with array options`, async () => {

0 commit comments

Comments
 (0)