Skip to content

Commit d3a0428

Browse files
committed
Replace requestConfig by requestInit
1 parent 774b53f commit d3a0428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ describe('InstantMeiliSearch instantiation', () => {
4444

4545
test('instantiation with custom request config with correct type', () => {
4646
const searchClient = instantMeiliSearch('http://localhost:7700', '', {
47-
requestConfig: {},
47+
requestInit: {},
4848
})
4949

5050
expect(searchClient).toBeTruthy()
5151
})
5252

5353
test('instantiation with custom request config set to undefined', () => {
5454
const searchClient = instantMeiliSearch('http://localhost:7700', '', {
55-
requestConfig: undefined,
55+
requestInit: undefined,
5656
})
5757

5858
expect(searchClient).toBeTruthy()
@@ -62,9 +62,9 @@ describe('InstantMeiliSearch instantiation', () => {
6262
expect(() => {
6363
instantMeiliSearch('http://localhost:7700', '', {
6464
// @ts-expect-error
65-
requestConfig: '',
65+
requestInit: '',
6666
})
67-
}).toThrow('Provided requestConfig should be an object')
67+
}).toThrow('Provided requestInit should be an object')
6868
})
6969

7070
test('instantiation with custom HTTP client with correct type', () => {

0 commit comments

Comments
 (0)