Skip to content

Commit 17d6471

Browse files
Corrected JS Driver Executable Commands in Readme (#46)
1 parent 65e6372 commit 17d6471

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/commands.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Add a new mock specification for intercepting and updating the request. The comm
5050
```javascript
5151
const authorizationMock = await driver.execute("interceptor: addMock", [{
5252
config: {
53-
url "**/reqres.in/**",
53+
url: "**/reqres.in/**",
5454
headers: {
5555
"Authorization" : "Bearer bearertoken"
5656
}
@@ -59,7 +59,7 @@ Add a new mock specification for intercepting and updating the request. The comm
5959

6060
const userListGetMock = await driver.execute("interceptor: addMock", [{
6161
config: {
62-
url "**/reqres.in/api/users",
62+
url: "**/reqres.in/api/users",
6363
method: "GET",
6464
responseBody: JSON.stringify({
6565
page: 2,
@@ -89,7 +89,7 @@ Given a mockId return during addMock command, will remove the mock configuration
8989
```javascript
9090
const authorizationMock = await driver.execute("interceptor: addMock", [{
9191
config: {
92-
url "**/reqres.in/**",
92+
url: "**/reqres.in/**",
9393
headers: {
9494
"Authorization" : "Bearer bearertoken"
9595
}
@@ -125,8 +125,8 @@ It also supports filtering the request based on the url. `include` will only lis
125125
```javascript
126126
await driver.execute("interceptor: startListening", [{
127127
config: {
128-
"include" : {
129-
url "**/reqres.in/**",
128+
include : {
129+
url: "**/reqres.in/**",
130130
}
131131
}
132132
}]);
@@ -137,8 +137,8 @@ It also supports filtering the request based on the url. `include` will only lis
137137
```javascript
138138
await driver.execute("interceptor: startListening", [{
139139
config: {
140-
"exclude" : {
141-
url "**/reqres.in/**",
140+
exclude : {
141+
url: "**/reqres.in/**",
142142
}
143143
}
144144
}]);

0 commit comments

Comments
 (0)