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.
This commit is contained in:
@@ -42,7 +42,12 @@ describe('RecurringTransactionsScheduler', () => {
|
|||||||
await scheduler.runDueRecurringTransactions();
|
await scheduler.runDueRecurringTransactions();
|
||||||
|
|
||||||
expect(dataSource.transaction).not.toHaveBeenCalled();
|
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 () => {
|
it('books a transaction for every active player and skips inactive ones', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user