testit-js-commons 4.1.0 → 4.1.1
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.
|
@@ -118,8 +118,8 @@ class AutotestsService extends common_1.BaseService {
|
|
|
118
118
|
}
|
|
119
119
|
updateAutotestFromFailed(originAutotest, autotest) {
|
|
120
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
-
var _a, _b;
|
|
122
|
-
yield this.updateAutotest(Object.assign(Object.assign({}, originAutotest), { externalId: (_a = originAutotest === null || originAutotest === void 0 ? void 0 : originAutotest.externalId) !== null && _a !== void 0 ? _a : autotest.externalId, name: (_b = originAutotest === null || originAutotest === void 0 ? void 0 : originAutotest.name) !== null && _b !== void 0 ? _b : autotest.name, links: autotest.links, externalKey: autotest.externalKey, steps: autotest.steps, setup: autotest.setup, teardown: autotest.teardown, title: autotest.title, description: autotest.description, namespace: autotest.namespace, classname: autotest.classname, labels: autotest.labels, tags: autotest.tags, workItemIds: autotest.workItemIds, isFlaky: autotest.isFlaky, shouldCreateWorkItem: autotest.shouldCreateWorkItem }));
|
|
121
|
+
var _a, _b, _c, _d;
|
|
122
|
+
yield this.updateAutotest(Object.assign(Object.assign({}, originAutotest), { externalId: (_a = originAutotest === null || originAutotest === void 0 ? void 0 : originAutotest.externalId) !== null && _a !== void 0 ? _a : autotest.externalId, name: (_b = originAutotest === null || originAutotest === void 0 ? void 0 : originAutotest.name) !== null && _b !== void 0 ? _b : autotest.name, links: autotest.links, externalKey: autotest.externalKey, steps: autotest.steps, setup: autotest.setup, teardown: autotest.teardown, title: autotest.title, description: autotest.description, namespace: (_c = autotest.namespace) !== null && _c !== void 0 ? _c : originAutotest.namespace, classname: (_d = autotest.classname) !== null && _d !== void 0 ? _d : originAutotest.classname, labels: autotest.labels, tags: autotest.tags, workItemIds: autotest.workItemIds, isFlaky: autotest.isFlaky, shouldCreateWorkItem: autotest.shouldCreateWorkItem }));
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
linkToWorkItems(internalId, workItemIds) {
|