refactor: rename negative to overtime

This commit is contained in:
Carlos Valente
2024-06-04 15:34:43 +02:00
committed by Carlos Valente
parent ee1753ef29
commit 6d1a911ab8
6 changed files with 7 additions and 7 deletions
@@ -1779,7 +1779,7 @@ describe('getTimerPhase()', () => {
expect(phase).toBe(TimerPhase.None);
});
it('can be negative', () => {
it('can be in overtime', () => {
const state = {
timer: {
addedTime: 0,
@@ -1794,7 +1794,7 @@ describe('getTimerPhase()', () => {
} as RuntimeState;
const phase = getTimerPhase(state);
expect(phase).toBe(TimerPhase.Negative);
expect(phase).toBe(TimerPhase.Overtime);
});
it('can be danger', () => {
+1 -1
View File
@@ -391,7 +391,7 @@ export function getTimerPhase(state: RuntimeState): TimerPhase {
}
if (current < 0) {
return TimerPhase.Negative;
return TimerPhase.Overtime;
}
const danger = state.eventNow.timeDanger;