How to use the cwlts/models/d2sb.CommandInputParameterModel function in cwlts

To help you get started, we’ve selected a few cwlts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rabix / composer / src / app / services / input-port / input-port.service.spec.ts View on Github external
it("should update the selectedInputPort stream", (done) => {
            const mockInputPort1 = new InputProperty({ id: "a", type: "string" });

            inputPortService.setSelected(mockInputPort1);

            inputPortService.selectedInputPort
                .subscribe((inputProp: InputProperty) => {
                    expect(inputProp).toBe(mockInputPort1);
                    done();
                });
        })
    });
github rabix / composer / src / app / services / input-port / input-port.service.spec.ts View on Github external
it("should add the item to the inputPorts stream", (done) => {
            const mockInputPort = new InputProperty();

            inputPortService.addInput(mockInputPort);

            inputPortService.inputPorts
                .subscribe((portList: InputProperty[]) => {
                    expect(portList).toEqual([mockInputPort]);
                    done();
                });
        });
    });
github rabix / composer / src / app / services / input-port / input-port.service.spec.ts View on Github external
it("should remove an item for the list and update the inputPorts stream", (done) => {
            const mockInputPort1 = new InputProperty({ id: "a", type: "string" });
            const mockInputPort2 = new InputProperty({ id: "b", type: "string" });

            inputPortService.addInput(mockInputPort1);
            inputPortService.addInput(mockInputPort2);

            inputPortService.deleteInputPort(mockInputPort1);

            inputPortService.inputPorts
                .subscribe((portList: InputProperty[]) => {

                    expect(portList.length).toBe(1);
                    expect(portList[0]).toBe(mockInputPort2);
                    done();
                });
        });
    });
github rabix / composer / src / app / services / input-port / input-port.service.spec.ts View on Github external
it("should remove an item for the list and update the inputPorts stream", (done) => {
            const mockInputPort1 = new InputProperty({ id: "a", type: "string" });
            const mockInputPort2 = new InputProperty({ id: "b", type: "string" });

            inputPortService.addInput(mockInputPort1);
            inputPortService.addInput(mockInputPort2);

            inputPortService.deleteInputPort(mockInputPort1);

            inputPortService.inputPorts
                .subscribe((portList: InputProperty[]) => {

                    expect(portList.length).toBe(1);
                    expect(portList[0]).toBe(mockInputPort2);
                    done();
                });
        });
    });