From fc11a545983b906e71fc5bad5f0c63e502f35a4e Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 05:32:32 +0100 Subject: [PATCH] test: tighten approval route timer assertion --- src/infra/approval-native-route-coordinator.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/infra/approval-native-route-coordinator.test.ts b/src/infra/approval-native-route-coordinator.test.ts index bd9dff8db4e..06fcacfeae9 100644 --- a/src/infra/approval-native-route-coordinator.test.ts +++ b/src/infra/approval-native-route-coordinator.test.ts @@ -44,7 +44,10 @@ describe("createApprovalNativeRouteReporter", () => { }, }); - expect(setTimeoutSpy).toHaveBeenCalledWith(expect.any(Function), 5 * 60_000); + expect(setTimeoutSpy).toHaveBeenCalledTimes(1); + const [cleanupCallback, cleanupDelayMs] = setTimeoutSpy.mock.calls[0]; + expect(cleanupDelayMs).toBe(5 * 60_000); + expect(cleanupCallback).toBeTypeOf("function"); } finally { vi.useRealTimers(); }