Skip to content

Commit 5218290

Browse files
committed
Update tests
1 parent 7188f3b commit 5218290

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/express/tests/client.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('Instant MeiliSearch Browser test', () => {
55

66
it('Should have generated a instant-meiisearch client and displayed', async () => {
77
await expect(page).toMatch(
8-
'{"client":{"cancelTokenSource":{"token":{"promise":{}}},"config":{"host":"http://localhost:7700","apiKey":"masterKey"}},"hitsPerPage":10,"limitPerRequest":50,"attributesToHighlight":"*"}'
8+
'{"client":{"cancelTokenSource":{"token":{"promise":{}}},"config":{"host":"http://localhost:7700","apiKey":"masterKey"}},"hitsPerPage":10,"limitPerRequest":50,"attributesToHighlight":["*"]}'
99
)
1010
})
1111
})

tests/base.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ import instantMeiliSearch from '../src/index'
22

33
test('Should test if instantMeiliSearch Client is created correctly', () => {
44
const client = instantMeiliSearch('http://localhost:7700', 'masterKey')
5-
expect(client.attributesToHighlight).toBe('*')
5+
expect(client.hitsPerPage).toBe(10)
6+
expect(client.limitPerRequest).toBe(50)
7+
expect(client.attributesToHighlight[0]).toBe('*')
68
})

0 commit comments

Comments
 (0)