UNPKG

skutter

Version:

Skutter: Opinionated BDD Browser based test framework

20 lines (19 loc) 433 B
"use strict"; const stop_watch_1 = require("./services/stop-watch"); class Step { constructor(text, id) { this.text = text; this.id = id; this.stopWatch = new stop_watch_1.StopWatch(); } get durationMiliseconds() { return this.stopWatch.elapsedMilliseconds; } start() { this.stopWatch.start(); } stop() { this.stopWatch.stop(); } } exports.Step = Step;