@elisra-devops/docgen-data-provider 1.77.0 → 1.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -951,9 +951,9 @@ describe('ResultDataProvider', () => {
951
951
  sheetName: expect.stringContaining('MEWP L2 Coverage'),
952
952
  columnOrder: expect.arrayContaining(['L2 REQ ID', 'L2 REQ Title', 'L2 Run Status']),
953
953
  }));
954
- const covered = result.rows.find((row) => row['L2 REQ ID'] === 'SR1001');
955
- const inferredByStepText = result.rows.find((row) => row['L2 REQ ID'] === 'SR1002');
956
- const uncovered = result.rows.find((row) => row['L2 REQ ID'] === 'SR1003');
954
+ const covered = result.rows.find((row) => row['L2 REQ ID'] === '5001');
955
+ const inferredByStepText = result.rows.find((row) => row['L2 REQ ID'] === '5002');
956
+ const uncovered = result.rows.find((row) => row['L2 REQ ID'] === '5003');
957
957
  expect(covered).toEqual(expect.objectContaining({
958
958
  'L2 REQ Title': 'Covered requirement',
959
959
  'L2 SubSystem': '',
@@ -1045,7 +1045,7 @@ describe('ResultDataProvider', () => {
1045
1045
  },
1046
1046
  ]);
1047
1047
  const result = await resultDataProvider.getMewpL2CoverageFlatResults('123', mockProjectName, [1]);
1048
- const row = result.rows.find((item) => item['L2 REQ ID'] === 'SR2001');
1048
+ const row = result.rows.find((item) => item['L2 REQ ID'] === '7001');
1049
1049
  expect(parseSpy).not.toHaveBeenCalled();
1050
1050
  expect(row).toEqual(expect.objectContaining({
1051
1051
  'L2 Run Status': 'Not Run',
@@ -1056,8 +1056,8 @@ describe('ResultDataProvider', () => {
1056
1056
  'System.Description': 'random text with SR9999 that is unrelated',
1057
1057
  'Custom.CustomerId': 'customer id unknown',
1058
1058
  'System.Title': 'Requirement without explicit SR code',
1059
- }, 4321);
1060
- expect(requirementId).toBe('SR4321');
1059
+ });
1060
+ expect(requirementId).toBe('');
1061
1061
  });
1062
1062
  it('should derive responsibility from Custom.SAPWBS when present', () => {
1063
1063
  const responsibility = resultDataProvider.deriveMewpResponsibility({