@elisra-devops/docgen-data-provider 1.129.0 → 1.130.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.
@@ -4175,7 +4175,7 @@ describe('ResultDataProvider', () => {
4175
4175
  });
4176
4176
  });
4177
4177
  describe('appendLinkedRelations', () => {
4178
- it('should append requirement/bug/cr when enabled and skip closed items', async () => {
4178
+ it('should append requirement/bug/cr when enabled, including closed items', async () => {
4179
4179
  const relations = [
4180
4180
  { rel: 'System.LinkTypes.Related', url: 'https://example.com/wi/1' },
4181
4181
  { rel: 'System.LinkTypes.Related', url: 'https://example.com/wi/2' },
@@ -4227,7 +4227,7 @@ describe('ResultDataProvider', () => {
4227
4227
  await resultDataProvider.appendLinkedRelations(relations, relatedRequirements, relatedBugs, relatedCRs, { id: 123 }, selected);
4228
4228
  expect(relatedRequirements).toHaveLength(1);
4229
4229
  expect(relatedRequirements[0]).toEqual(expect.objectContaining({ id: 1, customerId: 'CUST-1', workItemType: 'Requirement' }));
4230
- expect(relatedBugs).toHaveLength(1);
4230
+ expect(relatedBugs).toHaveLength(2);
4231
4231
  expect(relatedCRs).toHaveLength(1);
4232
4232
  });
4233
4233
  it('should log an error when fetching a related item fails', async () => {