jest-allure2-adapter
Version:
Allure 2 Adapter for jest
27 lines (26 loc) • 648 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestSuiteProps = void 0;
class TestSuiteProps {
constructor() {
this.prop = {};
}
set testProp(prop) {
this.prop.test = prop;
}
get suiteProp() {
return this.prop.suite;
}
set suiteProp(prop) {
this.prop.suite = prop;
}
apply(setProp) {
var _a;
const prop_ = (_a = this.prop.test) !== null && _a !== void 0 ? _a : this.prop.suite;
if (prop_) {
setProp(prop_);
this.prop.test = undefined;
}
}
}
exports.TestSuiteProps = TestSuiteProps;