UNPKG

kentico-cloud-delivery

Version:

Official Kentico Cloud Delivery SDK

12 lines 630 B
import { ResponseMapper } from '../../../lib/mappers'; import { Context, setup } from '../../setup'; describe('ResponseMapper', function () { var context = new Context(); setup(context); var responseMapper = new ResponseMapper(context.getConfig(), context.richTextHtmlParser); it("should throw an Error when invalid response is given", function () { expect(function () { return responseMapper.mapResponseDebug(null); }).toThrowError(); expect(function () { return responseMapper.mapResponseDebug(undefined); }).toThrowError(); }); }); //# sourceMappingURL=response-mapper.spec.js.map