Skip to content

Commit 7c43176

Browse files
authored
Merge pull request #1339 from meilisearch/bump-meilisearch-v0.12.0
Changes related to the next Meilisearch release (v1.12.0)
2 parents e86b7b3 + f966050 commit 7c43176

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/plenty-peaches-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@meilisearch/instant-meilisearch": minor
3+
---
4+
5+
Use Meilisearch v1.12 new highlight behavior

packages/instant-meilisearch/__tests__/overridden-meilisearch-parameters.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('InstantMeiliSearch overridden parameters', () => {
3535
const firstHits = firstResponse.results[0].hits
3636
expect(firstHits.length).toEqual(1)
3737
expect(firstHits[0]._highlightResult?.overview?.value).toContain(
38-
'<em>While</em> <em>racing</em> <em>to</em> <em>a</em> <em>boxing</em> <em>match</em>'
38+
'<em>While racing to a boxing match</em>'
3939
)
4040

4141
setMeiliSearchParams({
@@ -48,7 +48,7 @@ describe('InstantMeiliSearch overridden parameters', () => {
4848
const secondHits = secondResponse.results[0].hits
4949
expect(secondHits.length).toEqual(1)
5050
expect(secondHits[0]._highlightResult?.overview?.value).toContain(
51-
'<om>While</om> <om>racing</om> <om>to</om> <om>a</om> <om>boxing</om> <om>match</om>'
51+
'<om>While racing to a boxing match</om>'
5252
)
5353
})
5454
})

0 commit comments

Comments
 (0)