source: frontend/node_modules/istanbul-lib-report/lib/report-base.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 362 bytes
Line 
1'use strict';
2
3// TODO: switch to class private field when targetting node.js 12
4const _summarizer = Symbol('ReportBase.#summarizer');
5
6class ReportBase {
7 constructor(opts = {}) {
8 this[_summarizer] = opts.summarizer;
9 }
10
11 execute(context) {
12 context.getTree(this[_summarizer]).visit(this, context);
13 }
14}
15
16module.exports = ReportBase;
Note: See TracBrowser for help on using the repository browser.