Skip to content

Commit

Permalink
chore(notifications): 999 add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mmaul committed Jul 10, 2024
1 parent e68ba79 commit 4f8de74
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe('NotificationMenuActionsAssembler', () => {
it('should return menuActions', function() {
// Arrange
let showSpy = spyOn(notificationCommonModalComponent, 'show').and.returnValue(undefined);
let isLoadingSpy = spyOn(notificationProcessingService, 'isInLoadingProcess');

const notificationTemplate: Notification = {
id: 'id-1',
Expand Down Expand Up @@ -92,6 +93,10 @@ describe('NotificationMenuActionsAssembler', () => {
expect(showSpy).toHaveBeenCalled();
let conditionAction = item.condition(notificationTemplate);
expect(conditionAction).not.toBe(undefined);
expect(item.isLoading).toBeDefined();
item.isLoading(notificationTemplate);
expect(isLoadingSpy).toHaveBeenCalled();

});
});

Expand Down

0 comments on commit 4f8de74

Please sign in to comment.