UNPKG

lobo

Version:
57 lines (56 loc) 2.25 kB
"use strict"; exports.__esModule = true; var chalk_1 = require("chalk"); var program = require("commander"); var TestResultDecoratorConsoleImp = /** @class */ (function () { function TestResultDecoratorConsoleImp() { this.only = program.failOnOnly ? this.failed : this.inconclusive; this.skip = program.failOnSkip ? this.failed : this.inconclusive; this.todo = program.failOnTodo ? this.failed : this.inconclusive; } TestResultDecoratorConsoleImp.prototype.bulletPoint = function () { return "•"; }; TestResultDecoratorConsoleImp.prototype.debugLog = function (value) { return chalk_1["default"].cyan(value); }; TestResultDecoratorConsoleImp.prototype.diff = function (value) { return chalk_1["default"].red(value); }; TestResultDecoratorConsoleImp.prototype.expect = function (value) { return chalk_1["default"].yellow(value); }; TestResultDecoratorConsoleImp.prototype.failed = function (value) { return chalk_1["default"].red(value); }; TestResultDecoratorConsoleImp.prototype.line = function (line) { return line; }; TestResultDecoratorConsoleImp.prototype.given = function (value) { return chalk_1["default"].yellow(value); }; TestResultDecoratorConsoleImp.prototype.inconclusive = function (value) { return chalk_1["default"].yellow(value); }; TestResultDecoratorConsoleImp.prototype.passed = function (value) { return chalk_1["default"].green(value); }; TestResultDecoratorConsoleImp.prototype.rightArrow = function () { return "→"; }; TestResultDecoratorConsoleImp.prototype.verticalBarEnd = function () { return "└"; }; TestResultDecoratorConsoleImp.prototype.verticalBarMiddle = function () { return "│"; }; TestResultDecoratorConsoleImp.prototype.verticalBarStart = function () { return "┌"; }; return TestResultDecoratorConsoleImp; }()); exports.TestResultDecoratorConsoleImp = TestResultDecoratorConsoleImp; function createTestResultDecoratorConsole() { return new TestResultDecoratorConsoleImp(); } exports.createTestResultDecoratorConsole = createTestResultDecoratorConsole;