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