@testwizard/commands-mobile
Version:
23 lines (16 loc) • 616 B
JavaScript
;
const Commands = require('@testwizard/commands-core');
const Result = Commands.ResultForOkAndErrorMessage;
class RemoveAppCommand extends Commands.CommandBase {
constructor(testObject) {
super(testObject, 'Mobile.RemoveApp');
}
async execute(appId) {
if (appId === undefined)
throw new Error('appId is required');
const requestObj = [appId];
const json = await this.executeCommand(requestObj);
return new Result(json, 'removeApp was successful', 'removeApp failed');
}
}
module.exports = RemoveAppCommand;