Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger notification dispatch tests by queue #2216

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

iamacook
Copy link
Member

Summary

Our notifications are dispatched in accordance with queue events. Most of the test coverage was linked to our previous POST hooks, and therefore skipped.

This converts the tests to trigger via queue instead of POST calls, unskipping them.

Changes

  • Unskip notification dispatch tests
  • Modify tests to trigger via queue

@iamacook iamacook self-assigned this Dec 19, 2024
Comment on lines +142 to +145
reorgDetectedEventBuilder().build(),
newDelegateEventBuilder().build(),
updatedDelegateEventBuilder().build(),
deletedDelegateEventBuilder().build(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were added as they were missing.

@@ -2017,7 +2024,7 @@ describe.skip('Post Hook Events for Notifications (Unit)', () => {
}
});

pushNotificationsApi.enqueueNotification
notificationsRepository.enqueueNotification
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we are mocking the repository, it's's not possible to test this as the logic is inside the method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant