@testwizard/commands-mobile
Version:
22 lines (16 loc) • 605 B
JavaScript
;
const Commands = require('@testwizard/commands-core');
const Result = require('./IsAppInstalledResult');
class IsAppInstalledCommand extends Commands.CommandBase {
constructor(testObject) {
super(testObject, 'Mobile.IsAppInstalled');
}
async execute(appId) {
const requestObj = appId === undefined
? []
: [appId];
const json = await this.executeCommand(requestObj);
return new Result(json, 'isAppInstalled was successful', 'isAppInstalled failed');
}
}
module.exports = IsAppInstalledCommand;