Skip to content

Commit adead9c

Browse files
Add assertion for non-ghost towers in active calendar
1 parent 08d93bb commit adead9c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/svg/layout.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ describe('computeTowers edge cases', () => {
113113
],
114114
} as unknown as ContributionCalendar;
115115
const towers = computeTowers(calendar, 'linear', '2024-06-10');
116+
expect(towers.every((tower) => tower.isGhost === false)).toBe(true);
116117
expect(towers[0].isGhost).toBe(false);
117118
expect(towers[0].h).toBe(0); // 0 count non-ghost = 0 height
118119
expect(towers[0].strokeOpacity).toBe(0);

story-spark-ai

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 8ee415e977aa4983793e53bd06ec01eb1b3b1524

0 commit comments

Comments
 (0)