mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 17:50:42 +00:00
test: tighten media fetch guard assertion
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user