UNPKG

@event-inc/connections

Version:

Event Inc is a fully managed event bus lets you send and receive data across mission-critical cloud apps, databases and warehouses.

21 lines (17 loc) 597 B
import { makeId } from '@event-inc/utils'; import { createClient } from '../client'; import { createEmbedToken, createLinkToken } from '../logic'; require('dotenv').config(); jest.setTimeout(30000); describe('Link APIs Specs', () => { it('Should create a Link token', async () => { const client = createClient(process.env.BUILDABLE_SECRET_KEY, { baseUrl: process.env.EVENT_INC_API_BASE_URL, }); const linkToken = await createEmbedToken(client, { group: `my-event-link-${makeId(4)}`, label: `My Event Link ${makeId(4)}`, }); expect(typeof linkToken).toBe('string'); }); });