mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 03:30:40 +00:00
fix(test): use correct ImageAttachment type in shouldSendMessage tests
Fix CI lint failure by providing all required ImageAttachment fields (id, name, type, size, data, timestamp) instead of non-existent mediaType property.
This commit is contained in:
parent
9ca50b6495
commit
2642670dee
1 changed files with 20 additions and 2 deletions
|
|
@ -96,7 +96,16 @@ describe('shouldSendMessage', () => {
|
|||
shouldSendMessage({
|
||||
...defaults,
|
||||
inputText: '',
|
||||
attachedImages: [{ data: 'base64data', mediaType: 'image/png' }],
|
||||
attachedImages: [
|
||||
{
|
||||
id: '1',
|
||||
name: 'test.png',
|
||||
type: 'image/png',
|
||||
size: 100,
|
||||
data: 'base64data',
|
||||
timestamp: Date.now(),
|
||||
},
|
||||
],
|
||||
}),
|
||||
).toBe(true);
|
||||
});
|
||||
|
|
@ -106,7 +115,16 @@ describe('shouldSendMessage', () => {
|
|||
shouldSendMessage({
|
||||
...defaults,
|
||||
inputText: '\u200B',
|
||||
attachedImages: [{ data: 'base64data', mediaType: 'image/png' }],
|
||||
attachedImages: [
|
||||
{
|
||||
id: '1',
|
||||
name: 'test.png',
|
||||
type: 'image/png',
|
||||
size: 100,
|
||||
data: 'base64data',
|
||||
timestamp: Date.now(),
|
||||
},
|
||||
],
|
||||
}),
|
||||
).toBe(true);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue