From b2dfe2a3a46461aeed84b0a2270b8f2f04f5ce3f Mon Sep 17 00:00:00 2001 From: alicia pritchett Date: Mon, 27 Sep 2021 11:05:07 -0400 Subject: [PATCH] fix test to reflect how edit method works --- .../workflow-spec-list/workflow-spec-list.component.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 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 d5b096c..fc2cb33 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 @@ -169,12 +169,12 @@ describe('WorkflowSpecListComponent', () => { component.selectedSpec = mockWorkflowSpec1; component.selectedSpec.parents = []; component.selectedSpec.libraries = []; - component.editWorkflowSpec(); + component.editWorkflowSpec('study'); expect(openDialogSpy).toHaveBeenCalled(); expect(_upsertWorkflowSpecificationSpy).not.toHaveBeenCalled(); mockSpecData = mockWorkflowSpec0 as WorkflowSpecDialogData; - component.editWorkflowSpec(mockWorkflowSpec0); + component.editWorkflowSpec('study', mockWorkflowSpec0); expect(openDialogSpy).toHaveBeenCalled(); expect(_upsertWorkflowSpecificationSpy).toHaveBeenCalled(); });