File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/instant-meilisearch/__tests__ Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments