alsatian
Version:
TypeScript and JavaScript testing framework for beautiful and readable tests
21 lines • 774 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const test_case_result_1 = require("./test-case-result");
const get_overall_outcome_1 = require("./get-overall-outcome");
class TestResults {
constructor(fixtureResult, test) {
this.fixtureResult = fixtureResult;
this.test = test;
this._testCaseResults = [];
}
get outcome() {
return get_overall_outcome_1.getOverallOutcome(this._testCaseResults);
}
addTestCaseResult(args, error = null) {
const testCaseResult = new test_case_result_1.TestCaseResult(this, args, error);
this._testCaseResults.push(testCaseResult);
return testCaseResult;
}
}
exports.TestResults = TestResults;
//# sourceMappingURL=test-results.js.map
;