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 794 B
import { ensure, isDefined } from 'tiny-types'; import { CorrelationId, ScenarioDetails } from '../model/index.js'; import { Timestamp } from '../screenplay/index.js'; import { DomainEvent } from './DomainEvent.js'; /** * @group Events */ export class SceneSequenceDetected extends DomainEvent { sceneId; details; static fromJSON(o) { return new SceneSequenceDetected(CorrelationId.fromJSON(o.sceneId), ScenarioDetails.fromJSON(o.details), Timestamp.fromJSON(o.timestamp)); } constructor(sceneId, details, timestamp) { super(timestamp); this.sceneId = sceneId; this.details = details; ensure('sceneId', sceneId, isDefined()); ensure('details', details, isDefined()); } } //# sourceMappingURL=SceneSequenceDetected.js.map