jest-allure2-reporter
Version:
Idiomatic Jest reporter for Allure Framework
18 lines • 627 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.inflateParameter = inflateParameter;
const utils_1 = require("../../../utils");
const isParameter_1 = require("./isParameter");
function inflateParameter(name) {
function repair(value) {
if (value == null) {
return;
}
if ((0, isParameter_1.isParameter)(value)) {
return value.value == null ? undefined : { ...value, name };
}
return { name, value };
}
return ({ value }) => (0, utils_1.thruMaybePromise)(value, repair);
}
//# sourceMappingURL=inflateParameter.js.map