@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
19 lines • 625 B
JavaScript
import { ensure, isDefined } from 'tiny-types';
import { TestSuiteDetails } from '../model/index.js';
import { Timestamp } from '../screenplay/index.js';
import { DomainEvent } from './DomainEvent.js';
/**
* @group Events
*/
export class TestSuiteStarts extends DomainEvent {
details;
static fromJSON(o) {
return new TestSuiteStarts(TestSuiteDetails.fromJSON(o.details), Timestamp.fromJSON(o.timestamp));
}
constructor(details, timestamp) {
super(timestamp);
this.details = details;
ensure('details', details, isDefined());
}
}
//# sourceMappingURL=TestSuiteStarts.js.map