Skip to content

Commit 501bcd7

Browse files
committed
remoed unwanted changes
1 parent 31e8372 commit 501bcd7

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

lib/calculate.test.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -679,38 +679,6 @@ describe('calculateStreak', () => {
679679
expect(resultTuesday.longestStreak).toBe(2);
680680
});
681681

682-
it('verify streak formulas for single day contribution timeline (Variation 1)', () => {
683-
// 1 commit on day 11 (middle of week 2), surrounded by fully empty weeks on both sides
684-
const calendar = buildCalendar([
685-
0,
686-
0,
687-
0,
688-
0,
689-
0,
690-
0,
691-
0, // Week 1: empty
692-
0,
693-
0,
694-
0,
695-
1,
696-
0,
697-
0,
698-
0, // Week 2: single commit on day 4
699-
0,
700-
0,
701-
0,
702-
0,
703-
0,
704-
0,
705-
0, // Week 3: empty
706-
]);
707-
const result = calculateStreak(calendar);
708-
709-
expect(result.currentStreak).toBe(0);
710-
expect(result.longestStreak).toBe(1);
711-
expect(result.totalContributions).toBe(1);
712-
});
713-
714682
it('verify streak formulas for different starting days of the week timeline (Variation 2)', () => {
715683
// Week 1: 0, 0, 1, 1, 1, 1, 1 (Starts on Wednesday, 5 days)
716684
// Week 2: 1, 1, 1, 1, 1, 1, 1 (7 days)

0 commit comments

Comments
 (0)