How to use the cwlts/models.DockerRequirementModel 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 / tool-editor / sections / docker / docker-requirement.component.spec.ts View on Github external
it("should write dockerRequirement.dockerPull to input field", () => {
        component.docker = new DockerRequirementModel({
            class: "DockerRequirement",
            dockerPull: "ubuntu"
        });

        fixture.detectChanges();

        fixture.whenStable().then(() => {
            el = fixture.debugElement.query(By.css("[data-test='docker-pull-input']")).nativeElement;
            expect(el.value).toEqual("ubuntu", "Did not set dockerPull value on input field");
        });
    });
github rabix / composer / src / app / tool-editor / sections / docker / docker-requirement.component.ts View on Github external
ngOnChanges(): void {
        this.docker = this.docker || new DockerRequirementModel();
    }
}