fix test to reflect how edit method works

This commit is contained in:
alicia pritchett 2021-09-27 11:05:07 -04:00
parent 90c8f84ea4
commit b2dfe2a3a4
1 changed files with 2 additions and 2 deletions

View File

@ -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();
});