Skip to content

Commit 145a7b7

Browse files
committed
test(ui): fix agent identity fixture typing
Regeneration-Prompt: | While preparing openclaw#35474 against a moving origin/main, pnpm check started failing in ui/src/ui/views/agents-utils.test.ts because AgentIdentityResult now requires agentId and name in addition to avatar. Keep runtime code unchanged and update only the test fixture in the avatar-resolution case so it satisfies the full AgentIdentityResult shape.
1 parent cbde94e commit 145a7b7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ui/src/ui/views/agents-utils.test.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,14 @@ describe("agentLogoUrl", () => {
115115
describe("resolveAgentAvatarUrl", () => {
116116
it("prefers a runtime avatar URL over non-URL identity avatars", () => {
117117
expect(
118-
resolveAgentAvatarUrl({ identity: { avatar: "A", avatarUrl: "/avatar/main" } }, {
119-
avatar: "A",
120-
} as { avatar: string }),
118+
resolveAgentAvatarUrl(
119+
{ identity: { avatar: "A", avatarUrl: "/avatar/main" } },
120+
{
121+
agentId: "main",
122+
avatar: "A",
123+
name: "Main",
124+
},
125+
),
121126
).toBe("/avatar/main");
122127
});
123128

0 commit comments

Comments
 (0)