We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c449e64 commit b872f25Copy full SHA for b872f25
1 file changed
lib/svg/generator.test.ts
@@ -376,6 +376,18 @@ describe('generateSVG', () => {
376
377
expect(svg).not.toContain('attributeName="opacity" values="1;0.4;1"');
378
});
379
+ it('includes accessible title and description metadata', () => {
380
+ const svg = generateSVG(
381
+ mockStats,
382
+ { user: 'octocat' } as unknown as BadgeParams,
383
+ mockCalendar
384
+ );
385
+
386
+ expect(svg).toContain('<title>CommitPulse Stats for octocat</title>');
387
+ expect(svg).toContain('<desc>');
388
+ expect(svg).toContain('100');
389
+ expect(svg).toContain('10');
390
+ });
391
392
393
0 commit comments