fix: total test calulation on testActivity chart (@fehmer) (#5596)

This commit is contained in:
Christian Fehmer 2024-07-10 10:27:05 +02:00 committed by GitHub
parent 34244a3046
commit c802d0781e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,7 +148,7 @@ export class TestActivityCalendar implements MonkeyTypes.TestActivityCalendar {
getTotalTests(): number {
const days = differenceInDays(this.endDay, this.startDay);
return (
this.data.slice(0, days).reduce((a, c) => {
this.data.slice(0, days + 1).reduce((a, c) => {
return (a ?? 0) + (c ?? 0);
}, 0) ?? 0
);