mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 14:10:24 +00:00
chore: enable no-base-to-string
This commit is contained in:
@@ -107,7 +107,8 @@ describe("refreshChatAvatar", () => {
|
||||
const mainRequest = createDeferred<{ avatarUrl?: string }>();
|
||||
const opsRequest = createDeferred<{ avatarUrl?: string }>();
|
||||
const fetchMock = vi.fn((input: string | URL | Request) => {
|
||||
const url = String(input);
|
||||
const url =
|
||||
typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
|
||||
if (url === "avatar/main?meta=1") {
|
||||
return Promise.resolve({
|
||||
ok: true,
|
||||
|
||||
Reference in New Issue
Block a user