UNPKG

@testwizard/commands-mobile

Version:

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