lobo
Version:
Elm test runner
56 lines (55 loc) • 1.97 kB
JavaScript
exports.__esModule = true;
var program = require("commander");
var TestResultDecoratorTextImp = /** @class */ (function () {
function TestResultDecoratorTextImp() {
this.only = program.failOnOnly ? this.failed : this.inconclusive;
this.skip = program.failOnSkip ? this.failed : this.inconclusive;
this.todo = program.failOnTodo ? this.failed : this.inconclusive;
}
TestResultDecoratorTextImp.prototype.bulletPoint = function () {
return "•";
};
TestResultDecoratorTextImp.prototype.debugLog = function (value) {
return value;
};
TestResultDecoratorTextImp.prototype.diff = function (value) {
return value;
};
TestResultDecoratorTextImp.prototype.expect = function (value) {
return value;
};
TestResultDecoratorTextImp.prototype.failed = function (value) {
return value;
};
TestResultDecoratorTextImp.prototype.line = function (line) {
return line;
};
TestResultDecoratorTextImp.prototype.given = function (value) {
return value;
};
TestResultDecoratorTextImp.prototype.inconclusive = function (value) {
return value;
};
TestResultDecoratorTextImp.prototype.passed = function (value) {
return value;
};
TestResultDecoratorTextImp.prototype.rightArrow = function () {
return "→";
};
TestResultDecoratorTextImp.prototype.verticalBarEnd = function () {
return "└";
};
TestResultDecoratorTextImp.prototype.verticalBarMiddle = function () {
return "│";
};
TestResultDecoratorTextImp.prototype.verticalBarStart = function () {
return "┌";
};
return TestResultDecoratorTextImp;
}());
exports.TestResultDecoratorTextImp = TestResultDecoratorTextImp;
function createTestResultDecoratorText() {
return new TestResultDecoratorTextImp();
}
exports.createTestResultDecoratorText = createTestResultDecoratorText;
;