mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 11:17:40 +00:00
chore: Fix types in tests 31/N.
This commit is contained in:
@@ -16,7 +16,7 @@ function redirectResponse(location: string): Response {
|
||||
status: 302,
|
||||
headers: makeHeaders({ location }),
|
||||
body: { cancel: vi.fn() },
|
||||
} as Response;
|
||||
} as unknown as Response;
|
||||
}
|
||||
|
||||
function textResponse(body: string): Response {
|
||||
@@ -25,7 +25,7 @@ function textResponse(body: string): Response {
|
||||
status: 200,
|
||||
headers: makeHeaders({ "content-type": "text/plain" }),
|
||||
text: async () => body,
|
||||
} as Response;
|
||||
} as unknown as Response;
|
||||
}
|
||||
|
||||
function setMockFetch(impl?: (...args: unknown[]) => unknown) {
|
||||
|
||||
Reference in New Issue
Block a user