UNPKG

kentico-cloud-delivery

Version:

Official Kentico Cloud Delivery SDK

16 lines 661 B
import { Context, setup } from '../../setup'; describe('Preview URL', function () { var context = new Context({ usePreviewMode: true }); setup(context); it("origin should be 'https://preview-deliver.kenticocloud.com'", function () { var url = new URL(context.deliveryClient.items().getUrl()); expect(url.origin).toEqual('https://preview-deliver.kenticocloud.com'); }); it("preview pathname should contain project id'", function () { var url = context.deliveryClient.items().getUrl(); expect(url).toContain(context.projectId); }); }); //# sourceMappingURL=preview-url.spec.js.map