This commit is contained in:
parent
7a9bf3199a
commit
c294e2e9ae
5702 changed files with 465039 additions and 34 deletions
16
node_modules/istanbul-lib-report/lib/report-base.js
generated
vendored
Normal file
16
node_modules/istanbul-lib-report/lib/report-base.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
// TODO: switch to class private field when targetting node.js 12
|
||||
const _summarizer = Symbol('ReportBase.#summarizer');
|
||||
|
||||
class ReportBase {
|
||||
constructor(opts = {}) {
|
||||
this[_summarizer] = opts.summarizer;
|
||||
}
|
||||
|
||||
execute(context) {
|
||||
context.getTree(this[_summarizer]).visit(this, context);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ReportBase;
|
||||
Loading…
Add table
Add a link
Reference in a new issue