wip-webhook-helper
Version:
This utility helps with webhook notifications from Kentico Kontent
17 lines (12 loc) • 557 B
text/typescript
import { expect } from 'chai';
import * as workflowWebhookJson from './workflow-response.json';
import { IWebhookWorkflowResponse } from '../../responses';
describe('# Workflow response', () => {
const response = workflowWebhookJson as IWebhookWorkflowResponse;
it('Message should be mapped properly', () => {
expect(workflowWebhookJson.message).to.equal(response.message);
});
it('Data should be mapped properly', () => {
expect(workflowWebhookJson.data.items).to.equal(response.data.items);
});
});