refactor: allow overriding timer type in view

This commit is contained in:
Carlos Valente
2025-01-24 11:29:28 +01:00
committed by Carlos Valente
parent 78c2bd79b5
commit d58335d1a1
4 changed files with 43 additions and 11 deletions
@@ -27,4 +27,8 @@ describe('validateTimerType()', () => {
expect(emptyType).toBe(TimerType.Clock);
expect(invalidType).toBe(TimerType.CountDown);
});
it('handles a null value from params', () => {
const nullType = validateTimerType(null, TimerType.Clock);
expect(nullType).toBe(TimerType.Clock);
});
});