Skip to content

Commit e27494b

Browse files
committed
Fix search resolver tests
1 parent c83fa2a commit e27494b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/search-resolver.tests.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ describe('Pagination browser test', () => {
4848
expect(mockedMeilisearch).toHaveBeenCalledWith({
4949
host: 'http://localhost:7700',
5050
apiKey: '',
51+
clientAgents: ['Meilisearch instant-meilisearch (v0.7.1)'],
5152
})
5253
expect(mockedSearch).toHaveBeenCalledTimes(1)
5354
})
@@ -73,6 +74,7 @@ describe('Pagination browser test', () => {
7374
expect(mockedMeilisearch).toHaveBeenCalledWith({
7475
host: 'http://localhost:7700',
7576
apiKey: '',
77+
clientAgents: ['Meilisearch instant-meilisearch (v0.7.1)'],
7678
})
7779
expect(mockedSearch).toHaveBeenCalledTimes(2)
7880
})
@@ -99,6 +101,7 @@ describe('Pagination browser test', () => {
99101
expect(mockedMeilisearch).toHaveBeenCalledWith({
100102
host: 'http://localhost:7700',
101103
apiKey: '',
104+
clientAgents: ['Meilisearch instant-meilisearch (v0.7.1)'],
102105
})
103106
expect(mockedSearch).toHaveBeenCalledTimes(2)
104107
})
@@ -126,6 +129,7 @@ describe('Pagination browser test', () => {
126129
expect(mockedMeilisearch).toHaveBeenCalledWith({
127130
host: 'http://localhost:7700',
128131
apiKey: '',
132+
clientAgents: ['Meilisearch instant-meilisearch (v0.7.1)'],
129133
})
130134
expect(mockedSearch).toHaveBeenCalledTimes(2)
131135
})

0 commit comments

Comments
 (0)