mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-17 03:53:06 +00:00
14 lines
434 B
TypeScript
14 lines
434 B
TypeScript
import { TimerLifeCycle } from 'ontime-types';
|
|
|
|
import { getLifecycleLabel } from '../timerLifecycle';
|
|
|
|
describe('getLifecycleLabel', () => {
|
|
it('returns the shared label for known lifecycle values', () => {
|
|
expect(getLifecycleLabel(TimerLifeCycle.onClock)).toBe('Every second');
|
|
});
|
|
|
|
it('keeps unknown lifecycle values visible', () => {
|
|
expect(getLifecycleLabel('future-lifecycle')).toBe('future-lifecycle');
|
|
});
|
|
});
|