UNPKG

kentico-cloud-delivery

Version:

Official Kentico Cloud Delivery SDK

11 lines 625 B
import { stronglyTypedResolver } from '../../../lib/resolvers'; import { Context, setup } from '../../setup'; describe('StronglyTypedResolver', function () { var context = new Context(); setup(context); it("should throw an Error when invalid response is given", function () { expect(function () { return stronglyTypedResolver.createEmptyTypedObj(null, context.typeResolvers); }).toThrowError(); expect(function () { return stronglyTypedResolver.createEmptyTypedObj(undefined, context.typeResolvers); }).toThrowError(); }); }); //# sourceMappingURL=strongly-typed-resolver.spec.js.map