Skip to content

Commit cb4e04f

Browse files
committed
Fix esm env test
1 parent bb9a022 commit cb4e04f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tests/env/esm/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import * as DefaultMeiliSearch from '../../../../'
33

44
const client = new MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey'})
55
const defaultClient = new DefaultMeiliSearch.MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey'})
6-
const token = client.generateTenantToken([])
6+
const token = client.generateTenantToken('e489fe16-3381-431b-bee3-00430192915d', [])
77
console.log({ client, token, defaultClient })

tests/env/typescript-browser/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { IndexObject, MeiliSearch } from '../../../../'
1+
import { MeiliSearch } from '../../../../'
2+
import { IndexObject } from '../../../../src'
23

34
const config = {
45
host: 'http://127.0.0.1:7700',
@@ -20,5 +21,5 @@ function greeter(person: string) {
2021
user
2122
)} this is the list of all your indexes: \n ${uids.join(', ')}`
2223

23-
console.log(await client.generateTenantToken([])) // Resolved using the `browser` field
24+
console.log(await client.generateTenantToken('e489fe16-3381-431b-bee3-00430192915d', [])) // Resolved using the `browser` field
2425
})()

tests/env/typescript-node/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const indexUid = "movies"
5959
console.log(hit?._formatted?.title)
6060
})
6161

62-
console.log(await client.generateTenantToken([]))
62+
console.log(await client.generateTenantToken('e489fe16-3381-431b-bee3-00430192915d', []))
6363

6464
await index.delete()
6565
})()

0 commit comments

Comments
 (0)