spec-prefixes-processor.js 1.7 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.SpecPrefixesProcessor = void 0;
  19. var display_processor_1 = require("../display-processor");
  20. var SpecPrefixesProcessor = /** @class */ (function (_super) {
  21. __extends(SpecPrefixesProcessor, _super);
  22. function SpecPrefixesProcessor() {
  23. return _super !== null && _super.apply(this, arguments) || this;
  24. }
  25. SpecPrefixesProcessor.prototype.displaySuccessfulSpec = function (spec, log) {
  26. return this.configuration.prefixes.successful + log;
  27. };
  28. SpecPrefixesProcessor.prototype.displayFailedSpec = function (spec, log) {
  29. return this.configuration.prefixes.failed + log;
  30. };
  31. SpecPrefixesProcessor.prototype.displayPendingSpec = function (spec, log) {
  32. return this.configuration.prefixes.pending + log;
  33. };
  34. return SpecPrefixesProcessor;
  35. }(display_processor_1.DisplayProcessor));
  36. exports.SpecPrefixesProcessor = SpecPrefixesProcessor;
  37. //# sourceMappingURL=spec-prefixes-processor.js.map