Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Mar 29, 2023
1 parent 1915292 commit 4fb1e8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand All @@ -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


4 changes: 2 additions & 2 deletions lib/commands/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
Expand Down

0 comments on commit 4fb1e8a

Please # to comment.