From 1f1221af1759e95ecb965d1313f57d598087929e Mon Sep 17 00:00:00 2001 From: Kelly McDonald Date: Fri, 13 Aug 2021 12:23:35 -0400 Subject: [PATCH] Fixes #409 & #412 - sanity checks to make sure we do not demote a library that is being used and do not delete a library that is being used. also, do not allow setting both 'standalone' and 'library' on a workflow spec. --- .../workflow-spec-list/workflow-spec-list.component.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts b/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts index a49d106..0eedb15 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts @@ -37,7 +37,7 @@ import { import {GetIconCodePipe} from '../_pipes/get-icon-code.pipe'; import {FileListComponent} from '../file-list/file-list.component'; import {WorkflowSpecListComponent} from './workflow-spec-list.component'; -//import {WorkflowSpecDialogComponent} from '../_dialogs/workflow-spec-dialog/workflow-spec-dialog.component'; + export class MdDialogMock { // When the component calls this.dialog.open(...) we'll return an object @@ -526,7 +526,6 @@ describe('WorkflowSpecListComponent', () => { it('should call editWorkflowSpec, open Dialog & call _upsertWorkflowSpecification when Edit button is clicked', fakeAsync(() => { spyOn(dialog, 'open').and.callThrough(); - //const _upsertWorkflowSpecification = spyOn((component as any), '_upsertWorkflowSpecification').and.stub(); const button = fixture.debugElement.nativeElement.querySelector('#add_spec'); button.click(); httpMock.expectOne(`apiRoot/workflow-specification-category`);