kentico-cloud-delivery
Version:
Official Kentico Cloud Delivery SDK
14 lines • 672 B
JavaScript
exports.__esModule = true;
var mappers_1 = require("../../../lib/mappers");
var setup_1 = require("../../setup");
describe('ItemMapper', function () {
var context = new setup_1.Context();
setup_1.setup(context);
var itemMapper = new mappers_1.ItemMapper(context.getConfig(), context.richTextHtmlParser);
it("should throw an Error when invalid response is given", function () {
expect(function () { return itemMapper.mapSingleItem(null, null); }).toThrowError();
expect(function () { return itemMapper.mapSingleItem(undefined, undefined); }).toThrowError();
});
});
//# sourceMappingURL=item-mapper.spec.js.map
;