UNPKG

@testwizard/commands-powerswitch

Version:

20 lines (14 loc) 529 B
'use strict'; const Commands = require('@testwizard/commands-core'); const Result = Commands.ResultForOkAndErrorCode; class SwitchPowerOnCommand extends Commands.CommandBase { constructor(testObject) { super(testObject, 'SwitchPowerOn'); } async execute() { const requestObj = []; const json = await this.executeCommand(requestObj); return new Result(json, 'switchPowerOn was successful', 'switchPowerOn failed'); } } module.exports = SwitchPowerOnCommand;