import { isInternalType } from "./isInternaType"; describe("isInternaType tests", () => { it("when function is WrappedFunction should return true", () => { expect( isInternalType( { ___type: "ElementSubscription", }, "ElementSubscription", ), ).toBe(true); }); it("when function is not WrappedFunction should return false", () => { expect(isInternalType(null, "")).toBe(false); expect(isInternalType({}, "")).toBe(false); expect(isInternalType({ ___type: "AnotherType" }, "SomeType")).toBe(false); }); });