Marie
2024-08-23 12:13:49 +02:00
committed by GitHub
parent 4c5fc2311f
commit 981f311ed0
3 changed files with 11 additions and 2 deletions

View File

@ -20,4 +20,9 @@ describe('getNextThemeColor', () => {
expect(getNextThemeColor(currentColor)).toBe(nextColor);
});
it('returns the first color when currentColorIsUndefined', () => {
const firstColor: ThemeColor = MAIN_COLOR_NAMES[0];
expect(getNextThemeColor(undefined)).toBe(firstColor);
});
});