diff --git a/src/infra/backup-create.test.ts b/src/infra/backup-create.test.ts index a91d30c774a..5d3a38bee21 100644 --- a/src/infra/backup-create.test.ts +++ b/src/infra/backup-create.test.ts @@ -64,7 +64,7 @@ describe("formatBackupCreateSummary", () => { displayPath: "~/.openclaw/config.json", }, { - kind: "oauth", + kind: "credentials", sourcePath: "/oauth", archivePath: "archive/oauth", displayPath: "~/.openclaw/oauth", @@ -77,7 +77,7 @@ describe("formatBackupCreateSummary", () => { "Backup archive: /tmp/openclaw-backup.tar.gz", "Included 2 paths:", "- config: ~/.openclaw/config.json", - "- oauth: ~/.openclaw/oauth", + "- credentials: ~/.openclaw/oauth", "Dry run only; archive was not written.", ]); }); diff --git a/src/infra/pairing-pending.test.ts b/src/infra/pairing-pending.test.ts index 30c2551176b..90c27ac0130 100644 --- a/src/infra/pairing-pending.test.ts +++ b/src/infra/pairing-pending.test.ts @@ -19,7 +19,7 @@ describe("rejectPendingPairingRequest", () => { }); it("removes the request, persists, and returns the dynamic id key", async () => { - const state = { + const state: { pendingById: Record } = { pendingById: { keep: { accountId: "keep-me" }, reject: { accountId: "acct-42" }, @@ -33,7 +33,7 @@ describe("rejectPendingPairingRequest", () => { idKey: "accountId", loadState: async () => state, persistState, - getId: (pending) => pending.accountId, + getId: (pending: { accountId: string }) => pending.accountId, }), ).resolves.toEqual({ requestId: "reject", diff --git a/src/infra/ws.test.ts b/src/infra/ws.test.ts index be7a98c2133..53b70aca614 100644 --- a/src/infra/ws.test.ts +++ b/src/infra/ws.test.ts @@ -4,7 +4,9 @@ import { rawDataToString } from "./ws.js"; describe("rawDataToString", () => { it("returns string input unchanged", () => { - expect(rawDataToString("hello")).toBe("hello"); + expect(rawDataToString("hello" as unknown as Parameters[0])).toBe( + "hello", + ); }); it("decodes Buffer, Buffer[] and ArrayBuffer inputs", () => {