We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b48f73 + 4d1b03f commit c3822f3Copy full SHA for c3822f3
1 file changed
lib/svg/generator.test.ts
@@ -264,6 +264,13 @@ describe('generateSVG', () => {
264
expect(svg).not.toContain('class="cp-bg-fill"');
265
});
266
267
+ it('includes desc element in auto-theme SVG output', () => {
268
+ const svg = generateSVG(mockStats, autoParams, mockCalendar);
269
+
270
+ expect(svg).toContain('<desc>');
271
+ expect(svg).toContain(String(mockStats.totalContributions));
272
+ });
273
274
it('generates heat particles with CSS class instead of inline fill', () => {
275
const svg = generateSVG(mockStats, autoParams, mockCalendar);
276
0 commit comments