feat: Add a job to reopen snoozed notifications (#8545)

This commit is contained in:
Muhsin Keloth
2024-01-05 15:13:22 +05:30
committed by GitHub
parent 8a8f325f64
commit 68062216e4
4 changed files with 40 additions and 0 deletions

View File

@@ -26,6 +26,11 @@ RSpec.describe TriggerScheduledItemsJob do
described_class.perform_now
end
it 'triggers Notification::ReopenSnoozedNotificationsJob' do
expect(Notification::ReopenSnoozedNotificationsJob).to receive(:perform_later).once
described_class.perform_now
end
it 'triggers Account::ConversationsResolutionSchedulerJob' do
expect(Account::ConversationsResolutionSchedulerJob).to receive(:perform_later).once
described_class.perform_now