Skip to content

Commit 53affc1

Browse files
committed
Fix failing tests introduced by Meilisearch v1.2
1 parent 22f33f8 commit 53affc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/instant-meilisearch/__tests__/snippets.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ describe('Snippet Browser test', () => {
214214
{
215215
indexName: 'movies',
216216
params: {
217-
query: 'm',
217+
query: 'night',
218218
attributesToSnippet: ['overview:1', 'title:1'],
219219
snippetEllipsisText: '…',
220220
},
@@ -223,16 +223,16 @@ describe('Snippet Browser test', () => {
223223

224224
const firstHit = response.results[0]?.hits[0]?._snippetResult
225225
expect(firstHit).toHaveProperty('title', {
226-
value: '__ais-highlight__M__/ais-highlight__agnetic…',
226+
value: '__ais-highlight__Night__/ais-highlight__',
227227
})
228-
expect(firstHit).toHaveProperty('overview', { value: '' })
228+
expect(firstHit).toHaveProperty('overview', { value: 'While…' })
229229

230230
const secondHit = response.results[0].hits[1]._snippetResult
231231
expect(secondHit).toHaveProperty('title', {
232-
value: 'Judgment…',
232+
value: 'Four…',
233233
})
234234
expect(secondHit).toHaveProperty('overview', {
235-
value: '…__ais-highlight__m__/ais-highlight__atch…',
235+
value: '…__ais-highlight__night__/ais-highlight__…',
236236
})
237237
})
238238

0 commit comments

Comments
 (0)