1 | (function (factory) {
|
2 | if (typeof module === "object" && typeof module.exports === "object") {
|
3 | var v = factory(require, exports);
|
4 | if (v !== undefined) module.exports = v;
|
5 | }
|
6 | else if (typeof define === "function" && define.amd) {
|
7 | define(["require", "exports", "tslib", "./Coverage"], factory);
|
8 | }
|
9 | })(function (require, exports) {
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | var tslib_1 = require("tslib");
|
13 | var Coverage_1 = tslib_1.__importDefault(require("./Coverage"));
|
14 | var Cobertura = (function (_super) {
|
15 | tslib_1.__extends(Cobertura, _super);
|
16 | function Cobertura(executor, options) {
|
17 | if (options === void 0) { options = {}; }
|
18 | var _this = _super.call(this, executor, options) || this;
|
19 | _this.reportType = 'cobertura';
|
20 | if (options.projectRoot) {
|
21 | _this.projectRoot = options.projectRoot;
|
22 | }
|
23 | return _this;
|
24 | }
|
25 | Cobertura.prototype.getReporterOptions = function () {
|
26 | var options = _super.prototype.getReporterOptions.call(this);
|
27 | options.projectRoot = this.projectRoot;
|
28 | return options;
|
29 | };
|
30 | return Cobertura;
|
31 | }(Coverage_1.default));
|
32 | exports.default = Cobertura;
|
33 | });
|
34 |
|
\ | No newline at end of file |