We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a5f6b commit dbdee8bCopy full SHA for dbdee8b
1 file changed
tests/daemon/client.test.ts
@@ -107,5 +107,20 @@ describe('daemon client', () => {
107
const response = await handleResponse(unsupportedContentResponse, 'md');
108
assert.ok(response.includes('.png'));
109
});
110
+
111
+ it('uses the webp extension for WebP images', async () => {
112
+ const webpContentResponse = {
113
+ content: [
114
+ {
115
+ type: 'image' as const,
116
+ data: 'base64data',
117
+ mimeType: 'image/webp',
118
+ },
119
+ ],
120
+ structuredContent: {},
121
+ };
122
+ const response = await handleResponse(webpContentResponse, 'md');
123
+ assert.ok(response.includes('.webp'));
124
+ });
125
126
0 commit comments