push
github
8 of 16 branches covered (50.0%)
Branch coverage included in aggregate %.
405 of 417 relevant lines covered (97.12%)
0.97 hits per line
1 |
export const colors = [ |
1✔ |
2 |
'#f8f9fa', |
1✔ |
3 |
'#ced4da', |
1✔ |
4 |
'#adb5bd', |
1✔ |
5 |
'#212529', |
1✔ |
6 |
'#c92a2a', |
1✔ |
7 |
'#a61e4d', |
1✔ |
8 |
'#862e9c', |
1✔ |
9 |
'#5f3dc4', |
1✔ |
10 |
'#364fc7', |
1✔ |
11 |
'#1864ab', |
1✔ |
12 |
'#0b7285', |
1✔ |
13 |
'#087f5b', |
1✔ |
14 |
'#2b8a3e', |
1✔ |
15 |
'#5c940d', |
1✔ |
16 |
'#e67700', |
1✔ |
17 |
'#d9480f' |
1✔ |
18 |
]; |
1✔ |
19 |
|
1✔ |
20 |
export default function random(): string { |
× |
21 |
const value = Math.floor(Math.random() * 16777215).toString(16); |
× |
22 |
if (value.length === 6) { |
× |
23 |
return `#${value}`; |
× |
24 |
} |
× |
25 |
return random();
|
× |
26 |
} |
× |