We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e27e7f commit 4d1b03fCopy full SHA for 4d1b03f
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