From 76b5ea57755bf04f56cd510f7fd05e83af263a05 Mon Sep 17 00:00:00 2001 From: Shakker Date: Fri, 8 May 2026 20:55:21 +0100 Subject: [PATCH] test: tighten media fetch guard assertion --- src/media-understanding/shared.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media-understanding/shared.test.ts b/src/media-understanding/shared.test.ts index a19023b69fb..605b3212b02 100644 --- a/src/media-understanding/shared.test.ts +++ b/src/media-understanding/shared.test.ts @@ -47,7 +47,7 @@ afterEach(() => { }); function getFirstGuardedFetchCall() { - const call = fetchWithSsrFGuardMock.mock.calls[0]?.[0]; + const [call] = fetchWithSsrFGuardMock.mock.calls[0] ?? []; if (!call) { throw new Error("Expected fetchWithSsrFGuard to be called"); }