UNPKG

@testwizard/core

Version:

22 lines (15 loc) 589 B
'use strict'; const Commands = require('@testwizard/commands-core'); class BeginStepCommand extends Commands.SessionCommandBase { constructor(session) { super(session, 'BeginStep'); } async execute(name) { if (name === undefined) throw new Error('name is required'); const requestObj = [name]; var json = await this.executeCommand(requestObj); return new Commands.ResultForOkAndErrorCodeAndMessage(json, 'BeginStep was successful', 'BeginStep failed'); } } module.exports = BeginStepCommand;