UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

22 lines 772 B
import { ensure, isDefined } from 'tiny-types'; import { Outcome, TestSuiteDetails } from '../model/index.js'; import { Timestamp } from '../screenplay/index.js'; import { DomainEvent } from './DomainEvent.js'; /** * @group Events */ export class TestSuiteFinished extends DomainEvent { details; outcome; static fromJSON(o) { return new TestSuiteFinished(TestSuiteDetails.fromJSON(o.details), Outcome.fromJSON(o.outcome), Timestamp.fromJSON(o.timestamp)); } constructor(details, outcome, timestamp) { super(timestamp); this.details = details; this.outcome = outcome; ensure('details', details, isDefined()); ensure('outcome', outcome, isDefined()); } } //# sourceMappingURL=TestSuiteFinished.js.map