mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 20:20:22 +00:00
refactor: simplify extension conversions
This commit is contained in:
@@ -575,7 +575,7 @@ export function installBrowserControlServerHooks() {
|
||||
vi.stubGlobal(
|
||||
"fetch",
|
||||
vi.fn(async (url: string, init?: RequestInit) => {
|
||||
const u = String(url);
|
||||
const u = url;
|
||||
if (u.includes("/json/list")) {
|
||||
if (!state.reachable) {
|
||||
return makeResponse([]);
|
||||
|
||||
@@ -53,7 +53,7 @@ describe("profile CRUD endpoints", () => {
|
||||
vi.stubGlobal(
|
||||
"fetch",
|
||||
vi.fn(async (url: string) => {
|
||||
const u = String(url);
|
||||
const u = url;
|
||||
if (u.includes("/json/list")) {
|
||||
return makeResponse([]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user