UNPKG

1.46 kBSource Map (JSON)View Raw
1{"version":3,"file":"TextCoverage.js","sourceRoot":"","sources":["../../../../src/lib/reporters/TextCoverage.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,gEAAsE;IAGtE;QAA0C,wCAAQ;QAKhD,sBAAY,QAAc,EAAE,OAAiC;YAAjC,wBAAA,EAAA,YAAiC;YAA7D,YACE,kBAAM,QAAQ,EAAE,OAAO,CAAC,SAKzB;YATQ,gBAAU,GAAe,MAAM,CAAC;YAMvC,IAAI,OAAO,CAAC,UAAU,EAAE;gBACtB,KAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;aACtC;;QACH,CAAC;QAED,yCAAkB,GAAlB;YACE,IAAM,OAAO,GAAG,iBAAM,kBAAkB,WAAE,CAAC;YAE3C,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YAErC,OAAO,OAAO,CAAC;QACjB,CAAC;QACH,mBAAC;IAAD,CAAC,AApBD,CAA0C,kBAAQ,GAoBjD","sourcesContent":["import Coverage, { ReportType, CoverageProperties } from './Coverage';\nimport Node from '../executors/Node';\n\nexport default class TextCoverage extends Coverage\n implements TextCoverageProperties {\n readonly reportType: ReportType = 'text';\n maxColumns: number | undefined;\n\n constructor(executor: Node, options: TextCoverageOptions = {}) {\n super(executor, options);\n\n if (options.maxColumns) {\n this.maxColumns = options.maxColumns;\n }\n }\n\n getReporterOptions(): { [key: string]: any } {\n const options = super.getReporterOptions();\n\n options.maxColumns = this.maxColumns;\n\n return options;\n }\n}\n\nexport interface TextCoverageProperties extends CoverageProperties {\n /** Maximum number of columns */\n maxColumns?: number;\n}\n\nexport type TextCoverageOptions = Partial<TextCoverageProperties>;\n"]}
\No newline at end of file