From df634e76019ee2c61ebfe845ccc18c02d5a03e72 Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Tue, 4 Aug 2026 18:10:40 +0200 Subject: [PATCH] fix: update stale assertion for unconditional start/finish logging runDueRecurringTransactions() always logs a start/finish marker for observability, even when nothing is due, but the "does nothing" test still asserted logger.info was never called. Pre-existing baseline failure, unrelated to the notification-center work about to start. --- .../recurring-transactions.scheduler.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/myteamwallet_backend/src/recurring-transactions/recurring-transactions.scheduler.spec.ts b/myteamwallet_backend/src/recurring-transactions/recurring-transactions.scheduler.spec.ts index dba8d37..8387bab 100644 --- a/myteamwallet_backend/src/recurring-transactions/recurring-transactions.scheduler.spec.ts +++ b/myteamwallet_backend/src/recurring-transactions/recurring-transactions.scheduler.spec.ts @@ -42,7 +42,12 @@ describe('RecurringTransactionsScheduler', () => { await scheduler.runDueRecurringTransactions(); expect(dataSource.transaction).not.toHaveBeenCalled(); - expect(logger.info).not.toHaveBeenCalled(); + expect(logger.info).toHaveBeenCalledWith( + expect.objectContaining({ event: 'scheduled_recurring_transaction_check_start' }), + ); + expect(logger.info).toHaveBeenCalledWith( + expect.objectContaining({ event: 'scheduled_recurring_transaction_check_finished' }), + ); }); it('books a transaction for every active player and skips inactive ones', async () => {