Remove client-side isLoggedIn value
[ProtonMail-WebClient.git] / packages / docs-shared / components / getAccentColorForUsername.spec.ts
blob6ee562af6f9e25fd107dac4f031304834006d7f4
1 import { ACCENT_COLORS_IN_HSL, getAccentColorForUsername } from './getAccentColorForUsername'
3 describe('GetAccentColorForUsername', () => {
4   it('should deterministically return a color for a given username', () => {
5     expect(getAccentColorForUsername('foo')).toBe(ACCENT_COLORS_IN_HSL[4])
7     expect(getAccentColorForUsername('bar')).toBe(ACCENT_COLORS_IN_HSL[9])
9     expect(getAccentColorForUsername('baz')).toBe(ACCENT_COLORS_IN_HSL[17])
10   })