wip on a test

This commit is contained in:
alicia pritchett 2022-03-03 09:54:55 -05:00
parent 8e0b870dad
commit 147853f79f
1 changed files with 8 additions and 0 deletions

View File

@ -514,5 +514,13 @@ describe('WorkflowSpecListComponent', () => {
expect(_deleteWorkflowSpecSpy).not.toHaveBeenCalled();
});
it('should call gitPush', () => {
const mockComment = 'my comment';
const gitPushSpy = spyOn((component as any), 'gitPush').and.stub();
const dialogSpy = spyOn(component.dialog, 'open')
.and.returnValue({afterClosed: () => of (mockComment)} as any);
component.gitPush();
});
});