UNPKG

skutter

Version:

Skutter: Opinionated BDD Browser based test framework

27 lines (26 loc) 900 B
"use strict"; const process_message_1 = require("./process-message"); class StepFinishedMessage extends process_message_1.ProcessMessage { constructor(featureId, scenarioId, stepId, result, stepLog, error) { super(StepFinishedMessage.messageType); this.featureId = featureId; this.scenarioId = scenarioId; this.stepId = stepId; this.result = result; this.stepLog = stepLog; this.errorMessage = ""; this.errorStack = ""; if (error) { if (error instanceof Error) { let asError = error; this.errorMessage = asError.message; this.errorStack = asError.stack; } else { this.errorMessage = error; } } } } StepFinishedMessage.messageType = "step-finished"; exports.StepFinishedMessage = StepFinishedMessage;