@testwizard/commands-mobile
Version:
20 lines (14 loc) • 514 B
JavaScript
;
const Commands = require('@testwizard/commands-core');
const Result = Commands.ResultForOkAndErrorMessage;
class ResetAppCommand extends Commands.CommandBase {
constructor(testObject) {
super(testObject, 'Mobile.ResetApp');
}
async execute() {
const requestObj = [];
const json = await this.executeCommand(requestObj);
return new Result(json, 'resetApp was successful', 'resetApp failed');
}
}
module.exports = ResetAppCommand;