UNPKG

@testwizard/commands-mobile

Version:

20 lines (14 loc) 556 B
'use strict'; const CommandBase = require('@testwizard/commands-core').CommandBase; const Result = require('./GetOrientationResult'); class GetOrientationCommand extends CommandBase { constructor(testObject) { super(testObject, 'Mobile.GetOrientation'); } async execute() { const requestObj = []; const json = await this.executeCommand(requestObj); return new Result(json, 'getOrientation was successful', 'getOrientation failed'); } } module.exports = GetOrientationCommand;