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')}])); });