mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe tlon guarded fetch mock read
This commit is contained in:
@@ -63,7 +63,7 @@ function createGuardedResult(response: Response, finalUrl: string) {
|
||||
}
|
||||
|
||||
function guardedFetchCall(index: number): Parameters<typeof fetchWithSsrFGuard>[0] {
|
||||
const call = mockGuardedFetch.mock.calls.at(index)?.at(0);
|
||||
const call = mockGuardedFetch.mock.calls[index]?.at(0);
|
||||
if (call === undefined) {
|
||||
throw new Error(`expected guarded fetch call ${index}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user