mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 16:25:50 +00:00
test: dedupe inworld tts mock read
This commit is contained in:
parent
7de4c47da2
commit
b8727202a5
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue