@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
20 lines (16 loc) • 461 B
text/typescript
import { ensure, isDefined, TinyType } from 'tiny-types';
import { Timestamp } from '../screenplay';
/**
* Represents an internal domain event that occurs during test execution.
*
* @group Events
*/
export abstract class DomainEvent extends TinyType {
/**
* @param timestamp
*/
protected constructor(public readonly timestamp: Timestamp = new Timestamp()) {
super();
ensure('timestamp', timestamp, isDefined());
}
}