all files / core/results/ test-case-result.js

78.95% Statements 15/19
50% Branches 3/6
75% Functions 3/4
78.95% Lines 15/19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32  5044× 5044× 5044×         1312×           1312×   1310×            
"use strict";
var test_outcome_1 = require("./test-outcome");
var _errors_1 = require("../_errors");
var TestCaseResult = (function () {
    function TestCaseResult(_test, _arguments, _error) {
        this._test = _test;
        this._arguments = _arguments;
        this._error = _error;
    }
    TestCaseResult.prototype.arguments = function () {
        return this._arguments;
    };
    Object.defineProperty(TestCaseResult.prototype, "outcome", {
        get: function () {
            Iif (this._error) {
                if (this._error instanceof _errors_1.MatchError) {
                    return test_outcome_1.TestOutcome.Fail;
                }
                return test_outcome_1.TestOutcome.Error;
            }
            if (this._test.ignored) {
                return test_outcome_1.TestOutcome.Skip;
            }
            return test_outcome_1.TestOutcome.Pass;
        },
        enumerable: true,
        configurable: true
    });
    return TestCaseResult;
}());
exports.TestCaseResult = TestCaseResult;
//# sourceMappingURL=test-case-result.js.map