Skip to content

Commit

Permalink
Merge pull request #1339 from meilisearch/bump-meilisearch-v0.12.0
Browse files Browse the repository at this point in the history
Changes related to the next Meilisearch release (v1.12.0)
  • Loading branch information
brunoocasali authored Dec 23, 2024
2 parents e86b7b3 + f966050 commit 7c43176
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-peaches-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@meilisearch/instant-meilisearch": minor
---

Use Meilisearch v1.12 new highlight behavior
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('InstantMeiliSearch overridden parameters', () => {
const firstHits = firstResponse.results[0].hits
expect(firstHits.length).toEqual(1)
expect(firstHits[0]._highlightResult?.overview?.value).toContain(
'<em>While</em> <em>racing</em> <em>to</em> <em>a</em> <em>boxing</em> <em>match</em>'
'<em>While racing to a boxing match</em>'
)

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

0 comments on commit 7c43176

Please sign in to comment.