UNPKG

@testwizard/commands-mobile

Version:

22 lines (16 loc) 593 B
'use strict'; const Commands = require('@testwizard/commands-core'); const Result = Commands.ResultForOkAndErrorMessage; class InstallAppCommand extends Commands.CommandBase { constructor(testObject) { super(testObject, 'Mobile.InstallApp'); } async execute(ipaPath) { const requestObj = ipaPath === undefined ? [] : [ipaPath]; const json = await this.executeCommand(requestObj); return new Result(json, 'installApp was successful', 'installApp failed'); } } module.exports = InstallAppCommand;