Chrome DevTools for coding agents
test: save WebP responses with the right extension (#1901)
Mukunda Rao Katta3a24d71f2c0c
diff --git a/tests/daemon/client.test.ts b/tests/daemon/client.test.tsindex dede1587..8c59289c 100644--- a/tests/daemon/client.test.ts+++ b/tests/daemon/client.test.ts@@ -107,5 +107,20 @@ describe('daemon client', () => {const response = await handleResponse(unsupportedContentResponse, 'md');assert.ok(response.includes('.png'));});++ it('uses the webp extension for WebP images', async () => {+ const webpContentResponse = {+ content: [+ {+ type: 'image' as const,+ data: 'base64data',+ mimeType: 'image/webp',+ },+ ],+ structuredContent: {},+ };+ const response = await handleResponse(webpContentResponse, 'md');+ assert.ok(response.includes('.webp'));+ });});});