Skip to content

Commit 6c16256

Browse files
committed
fix: TT-582 add missing unit test to confirm that clockout function in TimeEntriesSummaryComponent emits an event
1 parent 3924ee4 commit 6c16256

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/app/modules/time-clock/components/time-entries-summary/time-entries-summary.component.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,11 @@ describe('TimeEntriesSummaryComponent', () => {
148148
discardPeriodicTasks();
149149
}));
150150

151+
it('clockOut should emits event', () => {
152+
spyOn(component.clockoutEvent, 'emit');
153+
component.clockOut();
154+
155+
expect(component.clockoutEvent.emit).toHaveBeenCalled();
156+
});
157+
151158
});

0 commit comments

Comments
 (0)