mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: dedupe inworld tts mock read
This commit is contained in:
@@ -29,7 +29,8 @@ function queueGuardedResponse(response: Response): { release: ReturnType<typeof
|
||||
}
|
||||
|
||||
function lastGuardRequest(): GuardRequest {
|
||||
const call = fetchWithSsrFGuardMock.mock.calls.at(-1);
|
||||
const calls = fetchWithSsrFGuardMock.mock.calls;
|
||||
const call = calls[calls.length - 1];
|
||||
if (!call) {
|
||||
throw new Error("fetchWithSsrFGuard was not called");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user