spec-durations-processor.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = function (d, b) {
  4. extendStatics = Object.setPrototypeOf ||
  5. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  6. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  7. return extendStatics(d, b);
  8. };
  9. return function (d, b) {
  10. if (typeof b !== "function" && b !== null)
  11. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  12. extendStatics(d, b);
  13. function __() { this.constructor = d; }
  14. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  15. };
  16. })();
  17. Object.defineProperty(exports, "__esModule", { value: true });
  18. exports.SpecDurationsProcessor = void 0;
  19. var display_processor_1 = require("../display-processor");
  20. var SpecDurationsProcessor = /** @class */ (function (_super) {
  21. __extends(SpecDurationsProcessor, _super);
  22. function SpecDurationsProcessor() {
  23. return _super !== null && _super.apply(this, arguments) || this;
  24. }
  25. SpecDurationsProcessor.displayDuration = function (spec, log) {
  26. return log + " (" + (spec._jsr && spec._jsr.formattedDuration) + ")";
  27. };
  28. SpecDurationsProcessor.prototype.displaySuccessfulSpec = function (spec, log) {
  29. return SpecDurationsProcessor.displayDuration(spec, log);
  30. };
  31. SpecDurationsProcessor.prototype.displayFailedSpec = function (spec, log) {
  32. return SpecDurationsProcessor.displayDuration(spec, log);
  33. };
  34. return SpecDurationsProcessor;
  35. }(display_processor_1.DisplayProcessor));
  36. exports.SpecDurationsProcessor = SpecDurationsProcessor;
  37. //# sourceMappingURL=spec-durations-processor.js.map