mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 13:44:12 +00:00
None colour from API (#1063)
This commit is contained in:
committed by
GitHub
parent
b1838a5e9a
commit
9e63261b35
@@ -18,6 +18,13 @@ describe('parses a colour string that is', () => {
|
||||
it('not a string', () => {
|
||||
expect(() => coerceColour(5)).toThrowError(Error('Invalid colour value received'));
|
||||
});
|
||||
it('undefinde and null are not valid', () => {
|
||||
expect(() => coerceColour(null)).toThrowError(Error('Invalid colour value received'));
|
||||
expect(() => coerceColour(undefined)).toThrowError(Error('Invalid colour value received'));
|
||||
});
|
||||
it('empty string is allowed', () => {
|
||||
expect(coerceColour('')).toBe('');
|
||||
});
|
||||
});
|
||||
|
||||
describe('match a string to an enum that is', () => {
|
||||
|
||||
Reference in New Issue
Block a user