@elisra-devops/docgen-data-provider 1.96.0 → 1.97.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.
- package/bin/modules/ResultDataProvider.js +14 -2
- package/bin/modules/ResultDataProvider.js.map +1 -1
- package/bin/tests/modules/ResultDataProvider.test.js +8 -0
- package/bin/tests/modules/ResultDataProvider.test.js.map +1 -1
- package/package.json +1 -1
- package/src/modules/ResultDataProvider.ts +19 -4
- package/src/tests/modules/ResultDataProvider.test.ts +11 -0
|
@@ -4132,6 +4132,14 @@ describe('ResultDataProvider', () => {
|
|
|
4132
4132
|
// Assert
|
|
4133
4133
|
expect(result['1']).toBeDefined();
|
|
4134
4134
|
});
|
|
4135
|
+
it('should map runless test reporter item with iteration by testCaseId key', () => {
|
|
4136
|
+
const iterations = [
|
|
4137
|
+
{ testCaseId: 217897, lastRunId: undefined, lastResultId: undefined, iteration: { actionResults: [] } },
|
|
4138
|
+
];
|
|
4139
|
+
const result = resultDataProvider.createIterationsMap(iterations, true, true);
|
|
4140
|
+
expect(result['217897']).toBeDefined();
|
|
4141
|
+
expect(result['undefined-undefined-217897']).toBeUndefined();
|
|
4142
|
+
});
|
|
4135
4143
|
});
|
|
4136
4144
|
describe('alignStepsWithIterationsBase', () => {
|
|
4137
4145
|
it('should return empty array when no iterations', () => {
|