Image limits in the validation test follow the new 4 pictures / 6 MB

This commit is contained in:
Niko1221 committed 2026-10-16 22:49:22 +02:00
1 parent d615708a7b
commit 30a367e5f4
1 file changed
+1 -1
+1 -1
View File
@@ -19,5 +19,5 @@ test('environment masks preserve credentials and unrelated existing configuratio
});
test('chat accepts bounded attached images and rejects remote or oversized image payloads',()=>{
const photo={name:'photo.png',url:'data:image/png;base64,aGVsbG8='};assert.deepEqual(validateChatImages([photo]),[photo]);
assert.throws(()=>validateChatImages([{url:'https://private.test/image.png'}]));assert.throws(()=>validateChatImages(Array(4).fill(photo)));assert.throws(()=>validateChatImages([{url:'data:image/png;base64,'+Buffer.alloc(2*1024*1024+1).toString('base64')}]));
assert.throws(()=>validateChatImages([{url:'https://private.test/image.png'}]));assert.throws(()=>validateChatImages(Array(5).fill(photo)));assert.throws(()=>validateChatImages([{url:'data:image/png;base64,'+Buffer.alloc(6*1024*1024+1).toString('base64')}]));
});