test: tighten media fetch guard assertion

This commit is contained in:
Shakker
2026-05-08 20:55:21 +01:00
parent 45ef4815df
commit 76b5ea5775

View File

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