@2bad/bitrix
Version:
Bitrix24 REST API client that doesn't suck
15 lines (14 loc) • 478 B
JavaScript
import Bitrix from './../../bitrix';
const WEBHOOK_URL = process.env['WEBHOOK_URL'];
if (!WEBHOOK_URL) {
throw Error('Integration tests require environmental variable `WEBHOOK_URL` to be set');
}
const { contacts } = Bitrix(WEBHOOK_URL);
describe('Contacts', () => {
describe('fields', () => {
it('should get all fields', async () => {
const { result } = await contacts.fields();
expect(result).toMatchSnapshot();
});
});
});