@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.
32 lines (26 loc) • 1.05 kB
text/typescript
// import { createClient } from '../client';
// import { makeId } from '@event-inc/utils';
// import { createOauthConnection } from '../logic';
// require('dotenv').config();
// jest.setTimeout(30000);
// describe('Oauth Connections APIs Specs', () => {
// it('Should create a Xero oauth connection', async () => {
// const client = createClient(process.env.BUILDABLE_SECRET_KEY, {
// baseUrl: process.env.EVENT_INC_API_BASE_URL,
// });
// const { source, destination } = await createOauthConnection(client, {
// type: 'xero',
// group: `my-xero-${makeId(4)}`,
// label: `my-xero-${makeId(4)}`,
// config: {
// clientId: process.env.CONNECTIONS_TEST_XERO_OAUTH_APP_CLIENT_ID,
// clientSecret:
// process.env.CONNECTIONS_TEST_XERO_OAUTH_APP_CLIENT_SECRET,
// redirectUri: process.env.CONNECTIONS_TEST_XERO_OAUTH_REDIRECT_URI,
// code: process.env.CONNECTIONS_TEST_XERO_OAUTH_CODE,
// },
// });
// expect(source).toHaveProperty('key');
// expect(destination).toHaveProperty('key');
// });
// });