@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
23 lines • 846 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestSuiteStarts = void 0;
const tiny_types_1 = require("tiny-types");
const index_js_1 = require("../model/index.js");
const index_js_2 = require("../screenplay/index.js");
const DomainEvent_js_1 = require("./DomainEvent.js");
/**
* @group Events
*/
class TestSuiteStarts extends DomainEvent_js_1.DomainEvent {
details;
static fromJSON(o) {
return new TestSuiteStarts(index_js_1.TestSuiteDetails.fromJSON(o.details), index_js_2.Timestamp.fromJSON(o.timestamp));
}
constructor(details, timestamp) {
super(timestamp);
this.details = details;
(0, tiny_types_1.ensure)('details', details, (0, tiny_types_1.isDefined)());
}
}
exports.TestSuiteStarts = TestSuiteStarts;
//# sourceMappingURL=TestSuiteStarts.js.map