Skip to content

Commit 748c30b

Browse files
committed
Fix esm test
1 parent 93cd960 commit 748c30b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/env/esm/src/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ import { generateTenantToken } from '../../../../dist/bundles/token.mjs'
44

55
const client = new MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey' })
66
const defaultClient = new DefaultMeiliSearch.MeiliSearch({ host:'http://localhost:7700', apiKey: 'masterKey' })
7-
const token = generateTenantToken('e489fe16-3381-431b-bee3-00430192915d', [], { apiKey: 'masterKey' })
8-
console.log({ client, token, defaultClient })
7+
generateTenantToken({ apiKey: 'masterKey', apiKeyUid:'e489fe16-3381-431b-bee3-00430192915d' })
8+
.then((token) => console.log({ client, token, defaultClient }))
9+
.catch((error) => {
10+
console.error(error)
11+
process.exitCode = 1
12+
})

0 commit comments

Comments
 (0)