UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

34 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RetryableSceneDetected = void 0; const tiny_types_1 = require("tiny-types"); const index_js_1 = require("../model/index.js"); const index_js_2 = require("../screenplay/index.js"); const DomainEvent_js_1 = require("./DomainEvent.js"); /** * Indicates that the test runner will retry running the test scenario upon failure. * * @group Events */ class RetryableSceneDetected extends DomainEvent_js_1.DomainEvent { sceneId; /** * Deserialises the event from a JSONObject * * @param o */ static fromJSON(o) { return new RetryableSceneDetected(index_js_1.CorrelationId.fromJSON(o.sceneId), index_js_2.Timestamp.fromJSON(o.timestamp)); } /** * @param sceneId * @param [timestamp] */ constructor(sceneId, timestamp) { super(timestamp); this.sceneId = sceneId; (0, tiny_types_1.ensure)('sceneId', sceneId, (0, tiny_types_1.isDefined)()); } } exports.RetryableSceneDetected = RetryableSceneDetected; //# sourceMappingURL=RetryableSceneDetected.js.map