UNPKG

@testwizard/commands-powerswitch

Version:

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