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

react-ui-org / react-ui / 15251092091

26 May 2025 10:01AM CUT coverage: 61.218%. First build
15251092091

Pull #643

github

web-flow
Merge c74417d87 into 38424df08
Pull Request #643: Transform Modal jest tests into playwright (#596)

228 of 431 branches covered (52.9%)

Branch coverage included in aggregate %.

315 of 456 relevant lines covered (69.08%)

21.92 hits per line

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

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

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

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

14
  if (variant === 'success') {
4!
15
    return styles.isRootColorSuccess;
×
16
  }
17

18
  if (variant === 'warning') {
4!
19
    return styles.isRootColorWarning;
×
20
  }
21

22
  if (variant === 'danger') {
4!
23
    return styles.isRootColorDanger;
×
24
  }
25

26
  if (variant === 'help') {
4!
27
    return styles.isRootColorHelp;
×
28
  }
29

30
  if (variant === 'info') {
4!
31
    return styles.isRootColorInfo;
×
32
  }
33

34
  if (variant === 'note') {
4!
35
    return styles.isRootColorNote;
4✔
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

© 2025 Coveralls, Inc