Skip to content

Commit

Permalink
Fix env esm test
Browse files Browse the repository at this point in the history
  • Loading branch information
flevi29 committed Oct 4, 2024
1 parent 438c6de commit f0345fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/env/esm/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { MeiliSearch } from '../../../../'
import * as DefaultMeiliSearch from '../../../../'
import { generateTenantToken } from '../../../../dist/bundles/token.mjs'

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

0 comments on commit f0345fc

Please sign in to comment.