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

CBIIT / bento-icdc-frontend / 26519274266

27 May 2026 02:57PM UTC coverage: 17.458% (-8.3%) from 25.73%
26519274266

push

github

web-flow
Merge pull request #1606 from CBIIT/feature/ai-test-studio

core components unit test

306 of 2587 branches covered (11.83%)

Branch coverage included in aggregate %.

1 of 4244 new or added lines in 74 files covered. (0.02%)

2 existing lines in 2 files now uncovered.

2197 of 11750 relevant lines covered (18.7%)

0.41 hits per line

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

0.0
/src/components/ReadMeDialog/ReadMe.style.generated.test.js
1
// ReadMe.style.test.js
2
import getStyles from './ReadMe.style';
3

NEW
4
describe('ReadMe.style', () => {
×
NEW
5
  test('should not throw when invoked', () => {
×
NEW
6
    expect(() => getStyles()).not.toThrow();
×
7
  });
8

NEW
9
  test('should return an object with expected top-level style keys', () => {
×
NEW
10
    const styles = getStyles();
×
11

NEW
12
    const expectedKeys = [
×
13
      'dialogBox',
14
      'dialogPaper',
15
      'titleContent',
16
      'title',
17
      'closeBtn',
18
      'downloadBtn',
19
      'closBtnContainer',
20
      'downloadIcon',
21
      'content',
22
    ];
23

NEW
24
    expect(Object.keys(styles).sort()).toEqual(expectedKeys.sort());
×
25
  });
26

NEW
27
  test('should include correct values for specific style properties', () => {
×
NEW
28
    const styles = getStyles();
×
29

30
    // dialogBox
NEW
31
    expect(styles.dialogBox).toEqual({
×
32
      minWidth: '750px',
33
      overflowY: 'scroll',
34
    });
35

36
    // dialogPaper
NEW
37
    expect(styles.dialogPaper).toEqual({ paddingBottom: '10px' });
×
38

39
    // title
NEW
40
    expect(styles.title).toMatchObject({
×
41
      fontSize: '23px',
42
      marginTop: '20px',
43
      display: 'inherit',
44
      fontWeight: '500',
45
      color: '#0d71a3',
46
      float: 'left',
47
      fontFamily: 'Nunito Light',
48
    });
49

50
    // closeBtn
NEW
51
    expect(styles.closeBtn).toEqual({
×
52
      padding: '5px',
53
      textAlign: 'right',
54
      fontSize: '30px',
55
    });
56

57
    // downloadBtn
NEW
58
    expect(styles.downloadBtn).toMatchObject({
×
59
      height: '30px',
60
      width: '30px',
61
      marginBottom: '-10px',
62
      marginRight: '7px',
63
    });
64

65
    // closBtnContainer
NEW
66
    expect(styles.closBtnContainer).toEqual({ paddingTop: '8px' });
×
67

68
    // downloadIcon
NEW
69
    expect(styles.downloadIcon).toEqual({
×
70
      color: '#fff',
71
      height: '30px',
72
      width: '30px',
73
    });
74
  });
75

NEW
76
  test('should include nested selectors under content with correct styles', () => {
×
NEW
77
    const styles = getStyles();
×
78

NEW
79
    expect(styles.content).toMatchObject({
×
80
      height: '700px',
81
      overflowY: 'scroll',
82
      paddingRight: '20px',
83
      paddingLeft: '25px',
84
      lineHeight: '1.5',
85
    });
86

87
    // Nested header selectors
NEW
88
    expect(styles.content['& h1, h2, h3, h4, h5']).toEqual({
×
89
      color: '#000000',
90
      marginBottom: '0px',
91
      fontWeight: '700',
92
      lineHeight: '40px',
93
    });
94

95
    // Nested paragraph selector
NEW
96
    expect(styles.content['& p']).toEqual({
×
97
      marginTop: '5px',
98
      fontSize: '14px',
99
      fontWeight: '300',
100
      marginBottom: '0px',
101
    });
102
  });
103

NEW
104
  test('should create a new styles object on each call (no shared references)', () => {
×
NEW
105
    const a = getStyles();
×
NEW
106
    const b = getStyles();
×
107

NEW
108
    expect(a).not.toBe(b); // root object is new
×
109

110
    // Check a few nested objects are also different references
NEW
111
    expect(a.dialogBox).not.toBe(b.dialogBox);
×
NEW
112
    expect(a.title).not.toBe(b.title);
×
NEW
113
    expect(a.content).not.toBe(b.content);
×
NEW
114
    expect(a.content['& p']).not.toBe(b.content['& p']);
×
115
  });
116

NEW
117
  test('mutating one returned styles object should not affect subsequent calls', () => {
×
NEW
118
    const first = getStyles();
×
119
    // Mutate some values
NEW
120
    first.dialogBox.minWidth = '999px';
×
NEW
121
    first.content['& p'].fontSize = '99px';
×
122

NEW
123
    const second = getStyles();
×
124
    // Ensure defaults are intact on new call
NEW
125
    expect(second.dialogBox.minWidth).toBe('750px');
×
NEW
126
    expect(second.content['& p'].fontSize).toBe('14px');
×
127
  });
128
});
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