mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
refactor: allow overriding timer type in view
This commit is contained in:
committed by
Carlos Valente
parent
78c2bd79b5
commit
d58335d1a1
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user