UNPKG

@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 511 B
import { ensure, isDefined, TinyType } from 'tiny-types'; import { Timestamp } from '../screenplay/index.js'; /** * Represents an internal domain event that occurs during test execution. * * @group Events */ export class DomainEvent extends TinyType { timestamp; /** * @param timestamp */ constructor(timestamp = new Timestamp()) { super(); this.timestamp = timestamp; ensure('timestamp', timestamp, isDefined()); } } //# sourceMappingURL=DomainEvent.js.map