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 TextCoverage = (function (_super) {
|
15 | tslib_1.__extends(TextCoverage, _super);
|
16 | function TextCoverage(executor, options) {
|
17 | if (options === void 0) { options = {}; }
|
18 | var _this = _super.call(this, executor, options) || this;
|
19 | _this.reportType = 'text';
|
20 | if (options.maxColumns) {
|
21 | _this.maxColumns = options.maxColumns;
|
22 | }
|
23 | return _this;
|
24 | }
|
25 | TextCoverage.prototype.getReporterOptions = function () {
|
26 | var options = _super.prototype.getReporterOptions.call(this);
|
27 | options.maxColumns = this.maxColumns;
|
28 | return options;
|
29 | };
|
30 | return TextCoverage;
|
31 | }(Coverage_1.default));
|
32 | exports.default = TextCoverage;
|
33 | });
|
34 |
|
\ | No newline at end of file |