Skip to content

Commit 7e47682

Browse files
feat: TT-234 Add successful message to updateEntryRunning method (#676)
1 parent 403bf3c commit 7e47682

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/modules/time-clock/store/entry.effects.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('TimeEntryActionEffects', () => {
177177
spyOn(toastrService, 'success');
178178

179179
effects.updateEntryRunning$.subscribe(action => {
180-
expect(toastrService.success).toHaveBeenCalledTimes(0);
180+
expect(toastrService.success).toHaveBeenCalledTimes(1);
181181
expect(action.type).toBe(EntryActionTypes.UPDATE_ENTRY_SUCCESS);
182182
});
183183
});

src/app/modules/time-clock/store/entry.effects.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export class EntryEffects {
193193
mergeMap((entry) =>
194194
this.entryService.updateEntry(entry).pipe(
195195
map((entryResponse) => {
196+
this.toastrService.success(INFO_SAVED_SUCCESSFULLY);
196197
return new actions.UpdateEntrySuccess(entryResponse);
197198
}),
198199
catchError((error) => {

0 commit comments

Comments
 (0)