chore(integration): snapshot local main worktree
This commit is contained in:
1 parent
48a9189939
commit
33fb31fb28
116 files changed
+8108
-3026
No files matched your search
@@ -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();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user