@serenity-js/core
Version: 
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
26 lines • 958 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActivityStarts = void 0;
const tiny_types_1 = require("tiny-types");
const DomainEvent_1 = require("./DomainEvent");
/**
 * Emitted when an [`Activity`](https://serenity-js.org/api/core/class/Activity/) starts.
 *
 * @group Events
 */
class ActivityStarts extends DomainEvent_1.DomainEvent {
    sceneId;
    activityId;
    details;
    constructor(sceneId, activityId, details, timestamp) {
        super(timestamp);
        this.sceneId = sceneId;
        this.activityId = activityId;
        this.details = details;
        (0, tiny_types_1.ensure)('sceneId', sceneId, (0, tiny_types_1.isDefined)());
        (0, tiny_types_1.ensure)('activityId', activityId, (0, tiny_types_1.isDefined)());
        (0, tiny_types_1.ensure)('details', details, (0, tiny_types_1.isDefined)());
    }
}
exports.ActivityStarts = ActivityStarts;
//# sourceMappingURL=ActivityStarts.js.map