UNPKG

stryker-html-reporter

Version:

An html reporter for the JavaScript mutation testing framework Stryker

28 lines 921 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Breadcrumb = /** @class */ (function () { function Breadcrumb(title, addedDepth, previousItem) { this.title = title; this.addedDepth = addedDepth; this.previousItem = previousItem; } Breadcrumb.prototype.add = function (title, addedDepth) { return new Breadcrumb(title, addedDepth, this); }; Object.defineProperty(Breadcrumb.prototype, "depth", { get: function () { if (this.previousItem) { return this.previousItem.depth + this.addedDepth; } else { return this.addedDepth; } }, enumerable: true, configurable: true }); Breadcrumb.start = new Breadcrumb('All files', 0); return Breadcrumb; }()); exports.default = Breadcrumb; //# sourceMappingURL=Breadcrumb.js.map