UNPKG

skutter

Version:

Skutter: Opinionated BDD Browser based test framework

19 lines (18 loc) 528 B
"use strict"; const step_dto_1 = require("./step-dto"); class ScenarioDTO { constructor(scenario) { this.dequeued = false; this.failed = false; this.title = ""; this.id = scenario.id; this.dequeued = !scenario.queued; this.annotations = scenario.annotations; this.title = scenario.title; this.steps = []; for (let step of scenario.steps) { this.steps.push(new step_dto_1.StepDTO(step)); } } } exports.ScenarioDTO = ScenarioDTO;