From 4fb1e8a1d31f807c92550f0677bf4e36fefd9076 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Mon, 13 Mar 2023 15:50:00 -0700 Subject: [PATCH] chore: fixup --- README.md | 16 +++++++--------- lib/commands/execute.js | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2e36285b9..95919751a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # appium-xcuitest-driver -[![NPM version](http://img.shields.io/npm/v/appium-xcuitest-driver.svg)](https://npmjs.org/package/appium-xcuitest-driver) +[![npm version](http://img.shields.io/npm/v/appium-xcuitest-driver.svg)](https://npmjs.org/package/appium-xcuitest-driver) [![Downloads](http://img.shields.io/npm/dm/appium-xcuitest-driver.svg)](https://npmjs.org/package/appium-xcuitest-driver) [![Release](https://github.com/appium/appium-xcuitest-driver/actions/workflows/publish.js.yml/badge.svg)](https://github.com/appium/appium-xcuitest-driver/actions/workflows/publish.js.yml) @@ -19,23 +19,23 @@ The [Documentation](https://appium.github.io/appium-xcuitest-driver) is hosted s ## Contributing & Development -To install the project check it out from GitHub and run: +Clone this project from GitHub and run: -``` +```bash npm install ``` To watch changes during the development: -``` +```bash npm run watch ``` To run unit/functional tests: -``` -npm test -npm e2e-test +```bash +npm test # unit +npm run e2e-test # functional ``` There are also a number of environment variables that can be used when running @@ -49,5 +49,3 @@ the tests locally. These include: the root directory of the repo with the extension "xcconfig") * `UICATALOG_REAL_DEVICE` - path to the real device build of UICatalog, in case the npm installed one is not built for real device - - diff --git a/lib/commands/execute.js b/lib/commands/execute.js index e3e647daf..f653a6916 100644 --- a/lib/commands/execute.js +++ b/lib/commands/execute.js @@ -191,9 +191,9 @@ export default { * @this {XCUITestDriver} */ async executeMobile(mobileCommand, opts = {}) { - if (!_.has(COMMAND_MAP, mobileCommand)) { + if (!_.has(this.COMMAND_MAP, mobileCommand)) { throw new errors.UnknownCommandError( - `Unknown mobile command '${mobileCommand}'. Only ${_.keys(COMMAND_MAP).join( + `Unknown mobile command '${mobileCommand}'. Only ${_.keys(this.COMMAND_MAP).join( ', ' )} commands are supported.` );