mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 19:33:46 +00:00
refactor: rename negative to overtime
This commit is contained in:
committed by
Carlos Valente
parent
ee1753ef29
commit
6d1a911ab8
@@ -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', () => {
|
||||
|
||||
@@ -391,7 +391,7 @@ export function getTimerPhase(state: RuntimeState): TimerPhase {
|
||||
}
|
||||
|
||||
if (current < 0) {
|
||||
return TimerPhase.Negative;
|
||||
return TimerPhase.Overtime;
|
||||
}
|
||||
|
||||
const danger = state.eventNow.timeDanger;
|
||||
|
||||
Reference in New Issue
Block a user