UNPKG

831 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const test_results_1 = require("./test-results");
4const get_overall_outcome_1 = require("./get-overall-outcome");
5class TestFixtureResults {
6 constructor(_testFixture) {
7 this._testFixture = _testFixture;
8 this._testResults = [];
9 }
10 get testResults() {
11 return this._testResults;
12 }
13 get fixture() {
14 return this._testFixture;
15 }
16 get outcome() {
17 return get_overall_outcome_1.getOverallOutcome(this._testResults);
18 }
19 addTestResult(test) {
20 const testResults = new test_results_1.TestResults(this, test);
21 this._testResults.push(testResults);
22 return testResults;
23 }
24}
25exports.TestFixtureResults = TestFixtureResults;
26//# sourceMappingURL=test-fixture-results.js.map
\No newline at end of file