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

CBIIT / bento-icdc-frontend / 26531437966

27 May 2026 06:43PM UTC coverage: 17.253% (-8.5%) from 25.73%
26531437966

Pull #1607

github

web-flow
Merge 8713d05ca into bc935f39c
Pull Request #1607: Feature/ai test studio - ICDC-4165 & ICDC-4171

306 of 2599 branches covered (11.77%)

Branch coverage included in aggregate %.

1 of 4403 new or added lines in 76 files covered. (0.02%)

2 existing lines in 2 files now uncovered.

2197 of 11909 relevant lines covered (18.45%)

0.41 hits per line

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

0.0
/src/components/InvertedMessage/invertedMessage.generated.test.jsx
1
// src/components/InvertedMessage/invertedMessage.test.jsx
2
import React from 'react';
3
import { render, screen } from '@testing-library/react';
4
import InvertedMessage from './invertedMessage.jsx';
5

NEW
6
describe('InvertedMessage component', () => {
×
NEW
7
  it('renders the provided data inside the message text area', () => {
×
NEW
8
    const data = 'Hello, Inverted World!';
×
NEW
9
    const { container } = render(<InvertedMessage data={data} />);
×
10

NEW
11
    expect(screen.getByText(data)).toBeTruthy();
×
12

NEW
13
    const outer = container.firstElementChild;
×
NEW
14
    expect(outer).not.toBeNull();
×
NEW
15
    expect(outer.tagName).toBe('DIV');
×
NEW
16
    expect(outer.children).toHaveLength(2);
×
17

NEW
18
    const arrayIcon = outer.children[0];
×
NEW
19
    const textArea = outer.children[1];
×
20

NEW
21
    expect(arrayIcon.children).toHaveLength(2);
×
NEW
22
    expect(textArea.textContent).toBe(data);
×
23
  });
24

NEW
25
  it.each([
×
26
    ['undefined', undefined],
27
    ['null', null],
28
    ['empty string', ''],
29
  ])('renders empty text when data is %s', (_label, data) => {
NEW
30
    const { container } = render(<InvertedMessage data={data} />);
×
31

NEW
32
    const outer = container.firstElementChild;
×
NEW
33
    expect(outer).not.toBeNull();
×
NEW
34
    expect(outer.children).toHaveLength(2);
×
35

NEW
36
    const arrayIcon = outer.children[0];
×
NEW
37
    const textArea = outer.children[1];
×
38

NEW
39
    expect(arrayIcon.children).toHaveLength(2);
×
NEW
40
    expect(textArea.textContent).toBe('');
×
41
  });
42

NEW
43
  it('keeps the icon structure intact', () => {
×
NEW
44
    const { container } = render(<InvertedMessage data="Structure check" />);
×
45

NEW
46
    const outer = container.firstElementChild;
×
NEW
47
    const arrayIcon = outer.children[0];
×
NEW
48
    const cover = arrayIcon.children[0];
×
NEW
49
    const base = arrayIcon.children[1];
×
50

NEW
51
    expect(outer).not.toBeNull();
×
NEW
52
    expect(arrayIcon).not.toBeNull();
×
NEW
53
    expect(cover).not.toBeNull();
×
NEW
54
    expect(base).not.toBeNull();
×
NEW
55
    expect(arrayIcon.contains(cover)).toBe(true);
×
NEW
56
    expect(arrayIcon.contains(base)).toBe(true);
×
57
  });
58
});
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