chore(integration): snapshot local main worktree

This commit is contained in:
inman committed 2026-08-31 10:23:21 +08:00
1 parent 48a9189939
commit 33fb31fb28
116 files changed
+8108 -3026

No files matched your search

+2 -2
View File
@@ -74,13 +74,13 @@ describe('agent avatar preparation', () => {
it('rejects unsupported and animated images before decoding', async () => {
await expect(prepareAgentAvatar(new File(['text'], 'avatar.gif', { type: 'image/gif' })))
.rejects.toThrow('伙伴头像仅支持 PNG、JPEG 或 WebP 图片');
.rejects.toThrow('智能体头像仅支持 PNG、JPEG 或 WebP 图片');
expect(inspectFrameCountMock).not.toHaveBeenCalled();
expect(decodeMock).not.toHaveBeenCalled();
inspectFrameCountMock.mockResolvedValue(2);
await expect(prepareAgentAvatar(new File(['animated'], 'avatar.webp', { type: 'image/webp' })))
.rejects.toThrow('伙伴头像不支持动态图片');
.rejects.toThrow('智能体头像不支持动态图片');
expect(decodeMock).not.toHaveBeenCalled();
});
});