From 30a367e5f40c49e4ebae393ea005bc5f38bc709a Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Fri, 16 Oct 2026 22:49:22 +0200 Subject: [PATCH] Image limits in the validation test follow the new 4 pictures / 6 MB --- apps/host/tests/native-settings.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/host/tests/native-settings.test.mjs b/apps/host/tests/native-settings.test.mjs index bedbe808..d835983a 100644 --- a/apps/host/tests/native-settings.test.mjs +++ b/apps/host/tests/native-settings.test.mjs @@ -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')}])); });