kentico-cloud-delivery
Version:
Official Kentico Cloud Delivery SDK
35 lines • 1.49 kB
JavaScript
import { Context, observableFactory, setup } from '../../setup';
describe('Response debug', function () {
var context = new Context();
setup(context);
var all;
beforeAll(function (done) {
observableFactory.getAllTestObjects(context.deliveryClient)
.subscribe(function (reponse) {
all = reponse;
done();
});
});
it("(item) Debug property should be defined and should contain data", function () {
expect(all.item.debug).toBeDefined();
});
it("(items) Debug property should be defined and should contain data", function () {
expect(all.items.debug).toBeDefined();
});
it("(taxonomy) Debug property should be defined and should contain data", function () {
expect(all.taxonomy.debug).toBeDefined();
});
it("(taxonomies) Debug property should be defined and should contain data", function () {
expect(all.taxonomies.debug).toBeDefined();
});
it("(type) Debug property should be defined and should contain data", function () {
expect(all.type.debug).toBeDefined();
});
it("(types) Debug property should be defined and should contain data", function () {
expect(all.types.debug).toBeDefined();
});
it("(element) Debug property should be defined and should contain data", function () {
expect(all.element.debug).toBeDefined();
});
});
//# sourceMappingURL=response-debug.spec.js.map