import { PortDirection } from "../parser/definition/types/PortDirection"; import { convertConnectionsToChildConnections } from "./convertConnectionsToChildConnections"; describe("convertConnectionsToChildConnections()", () => { const childConnections = [ { from: { direction: PortDirection.output, childName: "get arg tree", portName: "arg tree" }, to: { direction: PortDirection.input, childName: "extract args", portName: "arg tree" } }, { from: { direction: PortDirection.output, childName: "get arg tree", portName: "arg tree" }, to: { direction: PortDirection.input, childName: "assess app", portName: "arg tree" } } ] it("should convert connections", () => { const result = convertConnectionsToChildConnections(childConnections) expect(result).toMatchSnapshot(); }); });