Skip to content

Commit

Permalink
Corrected JS Driver Executable Commands in Readme (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
aniket-k-mukherjee authored Sep 14, 2024
1 parent 65e6372 commit 17d6471
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Add a new mock specification for intercepting and updating the request. The comm
```javascript
const authorizationMock = await driver.execute("interceptor: addMock", [{
config: {
url "**/reqres.in/**",
url: "**/reqres.in/**",
headers: {
"Authorization" : "Bearer bearertoken"
}
Expand All @@ -59,7 +59,7 @@ Add a new mock specification for intercepting and updating the request. The comm

const userListGetMock = await driver.execute("interceptor: addMock", [{
config: {
url "**/reqres.in/api/users",
url: "**/reqres.in/api/users",
method: "GET",
responseBody: JSON.stringify({
page: 2,
Expand Down Expand Up @@ -89,7 +89,7 @@ Given a mockId return during addMock command, will remove the mock configuration
```javascript
const authorizationMock = await driver.execute("interceptor: addMock", [{
config: {
url "**/reqres.in/**",
url: "**/reqres.in/**",
headers: {
"Authorization" : "Bearer bearertoken"
}
Expand Down Expand Up @@ -125,8 +125,8 @@ It also supports filtering the request based on the url. `include` will only lis
```javascript
await driver.execute("interceptor: startListening", [{
config: {
"include" : {
url "**/reqres.in/**",
include : {
url: "**/reqres.in/**",
}
}
}]);
Expand All @@ -137,8 +137,8 @@ It also supports filtering the request based on the url. `include` will only lis
```javascript
await driver.execute("interceptor: startListening", [{
config: {
"exclude" : {
url "**/reqres.in/**",
exclude : {
url: "**/reqres.in/**",
}
}
}]);
Expand Down

0 comments on commit 17d6471

Please sign in to comment.