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

react-ui-org / react-ui / 14189255065

01 Apr 2025 06:59AM CUT coverage: 90.47%. First build
14189255065

Pull #613

github

web-flow
Merge 4789b79f4 into a7d1e91b6
Pull Request #613: Add `writing-tests-guidelines.md` (#612)

770 of 859 branches covered (89.64%)

Branch coverage included in aggregate %.

711 of 778 relevant lines covered (91.39%)

64.99 hits per line

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

66.67
/src/components/Button/helpers/getRootLabelVisibilityClassName.js
1
export default (labelVisibility, styles) => {
2
  // Intentionally omitting `xs` which means label is visible on all screen sizes.
3

4
  if (labelVisibility === 'sm') {
92!
5
    return styles.hasLabelVisibleSm;
×
6
  }
7

8
  if (labelVisibility === 'md') {
92!
9
    return styles.hasLabelVisibleMd;
×
10
  }
11

12
  if (labelVisibility === 'lg') {
92!
13
    return styles.hasLabelVisibleLg;
×
14
  }
15

16
  if (labelVisibility === 'xl') {
92!
17
    return styles.hasLabelVisibleXl;
×
18
  }
19

20
  if (labelVisibility === 'x2l') {
92!
21
    return styles.hasLabelVisibleX2l;
×
22
  }
23

24
  if (labelVisibility === 'x3l') {
92!
25
    return styles.hasLabelVisibleX3l;
×
26
  }
27

28
  if (labelVisibility === 'none') {
92✔
29
    return styles.hasLabelHidden;
8✔
30
  }
31

32
  return null;
84✔
33
};
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