kentico-cloud-delivery
Version:
Official Kentico Cloud Delivery SDK
12 lines • 613 B
JavaScript
import { ItemMapper } from '../../../lib/mappers';
import { Context, setup } from '../../setup';
describe('ItemMapper', function () {
var context = new Context();
setup(context);
var itemMapper = new 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