UNPKG

wip-webhook-helper

Version:

This utility helps with webhook notifications from Kentico Kontent

15 lines 712 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var chai_1 = require("chai"); var deliveryWebhookJson = require("./delivery-response.json"); describe('# Delivery response', function () { var response = deliveryWebhookJson; it('Message should be mapped properly', function () { chai_1.expect(deliveryWebhookJson.message).to.equal(response.message); }); it('Data should be mapped properly', function () { chai_1.expect(deliveryWebhookJson.data.items).to.equal(response.data.items); chai_1.expect(deliveryWebhookJson.data.taxonomies).to.equal(response.data.taxonomies); }); }); //# sourceMappingURL=delivery-response.spec.js.map