diff --git a/src/app/modules/time-clock/store/entry.effects.spec.ts b/src/app/modules/time-clock/store/entry.effects.spec.ts index 7dd30863c..c8769ccaf 100644 --- a/src/app/modules/time-clock/store/entry.effects.spec.ts +++ b/src/app/modules/time-clock/store/entry.effects.spec.ts @@ -177,7 +177,7 @@ describe('TimeEntryActionEffects', () => { spyOn(toastrService, 'success'); effects.updateEntryRunning$.subscribe(action => { - expect(toastrService.success).toHaveBeenCalledTimes(0); + expect(toastrService.success).toHaveBeenCalledTimes(1); expect(action.type).toBe(EntryActionTypes.UPDATE_ENTRY_SUCCESS); }); }); diff --git a/src/app/modules/time-clock/store/entry.effects.ts b/src/app/modules/time-clock/store/entry.effects.ts index 43d73cc4f..73dcc8dfe 100644 --- a/src/app/modules/time-clock/store/entry.effects.ts +++ b/src/app/modules/time-clock/store/entry.effects.ts @@ -193,6 +193,7 @@ export class EntryEffects { mergeMap((entry) => this.entryService.updateEntry(entry).pipe( map((entryResponse) => { + this.toastrService.success(INFO_SAVED_SUCCESSFULLY); return new actions.UpdateEntrySuccess(entryResponse); }), catchError((error) => {