UNPKG

@testwizard/commands-mobile

Version:

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