mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 19:33:46 +00:00
refactor: remove stop as a possible end action
This commit is contained in:
committed by
Carlos Valente
parent
69eb9a5eff
commit
4ed38340e0
@@ -2,5 +2,4 @@ export enum EndAction {
|
||||
LoadNext = 'load-next',
|
||||
None = 'none',
|
||||
PlayNext = 'play-next',
|
||||
Stop = 'stop',
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ describe('validateEndAction()', () => {
|
||||
expect(endAction).toBe(EndAction.LoadNext);
|
||||
});
|
||||
it('returns fallback otherwise', () => {
|
||||
const emptyAction = validateEndAction('', EndAction.Stop);
|
||||
const emptyAction = validateEndAction('', EndAction.LoadNext);
|
||||
const invalidAction = validateEndAction('this-does-not-exist', EndAction.PlayNext);
|
||||
expect(emptyAction).toBe(EndAction.Stop);
|
||||
expect(emptyAction).toBe(EndAction.LoadNext);
|
||||
expect(invalidAction).toBe(EndAction.PlayNext);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user