We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7584c commit 61fa2b2Copy full SHA for 61fa2b2
1 file changed
src/commands/docs.test.ts
@@ -53,7 +53,8 @@ describe("docsSearchCommand", () => {
53
54
expect(fetchMock).toHaveBeenCalledTimes(1);
55
const [url, init] = fetchMock.mock.calls[0];
56
- expect(String(url)).toBe("https://docs.openclaw.ai/api/search?q=plugin+allowlist");
+ expect(url).toBeInstanceOf(URL);
57
+ expect(url.href).toBe("https://docs.openclaw.ai/api/search?q=plugin+allowlist");
58
expect(init).toMatchObject({ headers: { Accept: "application/json" } });
59
});
60
0 commit comments