kentico-cloud-delivery
Version:
Official Kentico Cloud Delivery SDK
19 lines • 689 B
JavaScript
import { ItemResponses } from '../../../lib';
import { Context, setup } from '../../setup';
describe('Response with Promises', function () {
var context = new Context();
setup(context);
var response;
beforeAll(function (done) {
context.deliveryClient.items()
.getPromise()
.then(function (xResponse) {
response = xResponse;
done();
});
});
it("Response items should be retrieved and mapped just like with Promise", function () {
expect(response).toEqual(jasmine.any(ItemResponses.DeliveryItemListingResponse));
});
});
//# sourceMappingURL=response-by-promise.spec.js.map