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

CBIIT / bento-icdc-frontend / 26521483403

27 May 2026 03:36PM UTC coverage: 17.458% (-8.3%) from 25.73%
26521483403

Pull #1607

github

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

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/OverlayWindow/OverlayText.generated.test.js
1
// src/components/OverlayWindow/OverlayText.test.js
2

3
import { text } from './OverlayText';
4

NEW
5
describe('OverlayText', () => {
×
NEW
6
  const expectedContent = [
×
7
    'This warning banner provides privacy and security notices consistent with applicable federal laws, directives, and other federal guidance for accessing this Government system, which includes (1) this computer network, (2) all computers connected to this network, and (3) all devices and storage media attached to this network or to a computer on this network.',
8
    'This system is provided for Government-authorized use only.',
9
    'Unauthorized or improper use of this system is prohibited and may result in disciplinary action and/or civil and criminal penalties.',
10
    'Personal use of social media and networking sites on this system is limited as to not interfere with official work duties and is subject to monitoring.',
11
  ];
12

NEW
13
  const expectedList = [
×
14
    'The Government may monitor, record, and audit your system usage, including usage of personal devices and email systems for official duties or to conduct HHS business. Therefore, you have no reasonable expectation of privacy regarding any communication or data transiting or stored on this system. At any time, and for any lawful Government purpose, the government may monitor, intercept, and search and seize any communication or data transiting or stored on this system.',
15
    'Any communication or data transiting or stored on this system may be disclosed or used for any lawful Government purpose.',
16
  ];
17

NEW
18
  describe('exports and shape', () => {
×
NEW
19
    it('should export a text object with content and list arrays', () => {
×
NEW
20
      expect(text).toBeDefined();
×
NEW
21
      expect(typeof text).toBe('object');
×
NEW
22
      expect(Array.isArray(text.content)).toBe(true);
×
NEW
23
      expect(Array.isArray(text.list)).toBe(true);
×
24
    });
25

NEW
26
    it('should have the correct number of items', () => {
×
NEW
27
      expect(text.content).toHaveLength(4);
×
NEW
28
      expect(text.list).toHaveLength(2);
×
29
    });
30
  });
31

NEW
32
  describe('exact values and order', () => {
×
NEW
33
    it('should contain the exact content paragraphs in order', () => {
×
NEW
34
      expect(text.content).toEqual(expectedContent);
×
35
    });
36

NEW
37
    it('should contain the exact list items in order', () => {
×
NEW
38
      expect(text.list).toEqual(expectedList);
×
39
    });
40
  });
41

NEW
42
  describe('string formatting/quality checks', () => {
×
NEW
43
    it('should not have leading or trailing whitespace in any string', () => {
×
NEW
44
      const allStrings = [...text.content, ...text.list];
×
NEW
45
      for (const s of allStrings) {
×
NEW
46
        expect(s).toBe(s.trim());
×
47
      }
48
    });
49

NEW
50
    it('should end each string with a period', () => {
×
NEW
51
      const allStrings = [...text.content, ...text.list];
×
NEW
52
      for (const s of allStrings) {
×
NEW
53
        expect(s.endsWith('.')).toBe(true);
×
54
      }
55
    });
56

NEW
57
    it('should have non-empty strings for all entries', () => {
×
NEW
58
      const allStrings = [...text.content, ...text.list];
×
NEW
59
      for (const s of allStrings) {
×
NEW
60
        expect(typeof s).toBe('string');
×
NEW
61
        expect(s.length).toBeGreaterThan(0);
×
62
      }
63
    });
64
  });
65

NEW
66
  describe('non-mutating usage', () => {
×
NEW
67
    it('modifying a local copy should not affect the exported data', () => {
×
NEW
68
      const localCopy = [...text.content];
×
NEW
69
      localCopy.push('Temporary test string.');
×
NEW
70
      expect(localCopy).toHaveLength(text.content.length + 1);
×
71
      // Ensure original export remains unchanged
NEW
72
      expect(text.content).toEqual(expectedContent);
×
73
    });
74
  });
75

NEW
76
  describe('edge/boundary semantics', () => {
×
NEW
77
    it('should preserve the specific terminology and keywords', () => {
×
78
      // Spot-check for critical keywords to ensure content integrity
NEW
79
      expect(text.content[0]).toContain('Government');
×
NEW
80
      expect(text.content[0]).toContain('computer network');
×
NEW
81
      expect(text.content[1]).toContain('Government-authorized');
×
NEW
82
      expect(text.list[0]).toContain('monitor');
×
NEW
83
      expect(text.list[0]).toContain('no reasonable expectation of privacy');
×
NEW
84
      expect(text.list[1]).toContain('disclosed or used');
×
85
    });
86
  });
87
});
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