Skip to content

Commit de76998

Browse files
authored
test(svg generator): verify .scan-line CSS class is on the radar rect in both renderers (JhaSourav07#1134)
* test(svg generator): verify .scan-line CSS class is on the radar rect in both renderers * test(svg generator): verify .scan-line CSS class is on the radar rect in both renderers
1 parent 581a63d commit de76998

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

lib/svg/generator.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,21 @@ describe('generateSVG', () => {
386386
expect(svg).toContain('prefers-reduced-motion');
387387
});
388388

389+
it('includes the scan-line class on the radar rect in the static renderer output', () => {
390+
const staticParams = {
391+
user: 'avi',
392+
autoTheme: false,
393+
} as unknown as BadgeParams;
394+
395+
const svg = generateSVG(mockStats, staticParams, mockCalendar);
396+
expect(svg).toContain('class="cp-accent-fill scan-line"');
397+
});
398+
399+
it('includes the scan-line class on the radar rect in the auto-theme renderer output', () => {
400+
const svg = generateSVG(mockStats, autoParams, mockCalendar);
401+
expect(svg).toContain('class="cp-accent-fill scan-line"');
402+
});
403+
389404
it('emits tower-raising CSS animations and staggered delays in auto mode', () => {
390405
const svg = generateSVG(mockStats, autoParams, mockCalendar);
391406

0 commit comments

Comments
 (0)