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"); }