• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

react-ui-org / react-ui / 14831340595

05 May 2025 07:31AM UTC coverage: 77.116% (-13.2%) from 90.283%
14831340595

Pull #636

github

web-flow
Merge c233dddc7 into b73b8ec0f
Pull Request #636: Refactoring/miscellaneous jest to playwright

626 of 897 branches covered (69.79%)

Branch coverage included in aggregate %.

695 of 816 relevant lines covered (85.17%)

43.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.93
/src/components/_helpers/getRootColorClassName.js
1
export const getRootColorClassName = (variant, styles) => {
14✔
2
  if (variant === 'primary') {
100✔
3
    return styles.isRootColorPrimary;
84✔
4
  }
5

6
  if (variant === 'secondary') {
16!
7
    return styles.isRootColorSecondary;
×
8
  }
9

10
  if (variant === 'selected') {
16!
11
    return styles.isRootColorSelected;
×
12
  }
13

14
  if (variant === 'success') {
16✔
15
    return styles.isRootColorSuccess;
2✔
16
  }
17

18
  if (variant === 'warning') {
14✔
19
    return styles.isRootColorWarning;
2✔
20
  }
21

22
  if (variant === 'danger') {
12✔
23
    return styles.isRootColorDanger;
2✔
24
  }
25

26
  if (variant === 'help') {
10✔
27
    return styles.isRootColorHelp;
2✔
28
  }
29

30
  if (variant === 'info') {
8✔
31
    return styles.isRootColorInfo;
2✔
32
  }
33

34
  if (variant === 'note') {
6!
35
    return styles.isRootColorNote;
6✔
36
  }
37

38
  if (variant === 'light') {
×
39
    return styles.isRootColorLight;
×
40
  }
41

42
  if (variant === 'dark') {
×
43
    return styles.isRootColorDark;
×
44
  }
45

46
  return null;
×
47
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc