fix test to reflect how edit method works
This commit is contained in:
parent
90c8f84ea4
commit
b2dfe2a3a4
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue