Skip to content

Commit 3cf5d46

Browse files
committed
chore: update README.md
1 parent 154a4c3 commit 3cf5d46

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# webdriverio-plugin [![CircleCI](https://circleci.com/gh/ng-apimock/webdriverio-plugin.svg?style=svg)](https://circleci.com/gh/ng-apimock/webdriverio-plugin) [![dependency Status](https://img.shields.io/david/ng-apimock/webdriverio-plugin.svg)](https://david-dm.org/ng-apimock/webdriverio-plugin) [![devDependency Status](https://img.shields.io/david/dev/ng-apimock/webdriverio-plugin.svg)](https://david-dm.org/ng-apimock/webdriverio-plugin#info=devDependencies)
1+
# wdio-ng-apimock-service [![CircleCI](https://circleci.com/gh/ng-apimock/webdriverio-plugin.svg?style=svg)](https://circleci.com/gh/ng-apimock/webdriverio-plugin) [![dependency Status](https://img.shields.io/david/ng-apimock/webdriverio-plugin.svg)](https://david-dm.org/ng-apimock/webdriverio-plugin) [![devDependency Status](https://img.shields.io/david/dev/ng-apimock/webdriverio-plugin.svg)](https://david-dm.org/ng-apimock/webdriverio-plugin#info=devDependencies)
22
webdriver plugin for @ng-apimock/core
33

4+
## Getting Started
5+
6+
```shell
7+
npm install wdio-ng-apimock-service --save-dev
8+
```
9+
410
### Usage
511
This plugin connects to ng-apimock and makes the plugin functions available within the tests.
612

@@ -9,7 +15,7 @@ Enable this plugin in your config file:
915
```js
1016
exports.config = {
1117
services: [['ng-apimock'], {
12-
globalName: 'ngApimockWebdriverioPlugin' // optional option (defaults to ngApimock)
18+
globalName: 'ngApimock' // optional option (defaults to ngApimock)
1319
}
1420
]
1521
};
@@ -51,5 +57,5 @@ Resets all the mocks to the default state.
5157
##### setMocksToPassThrough(): Promise<any>;
5258
Sets all the mocks to pass through.
5359

54-
##### setPreset(name: string): Promise<any>;
55-
Sets the mocks and variables in the selected state.
60+
##### selectPreset(name: string): Promise<any>;
61+
Selects the mocks and variables in the selected state.

0 commit comments

Comments
 (0)