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])