Skip to content

Commit

Permalink
Update intercept.mdx pattern matching example
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-zou committed Mar 30, 2023
1 parent 4ec155d commit def661a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/commands/intercept.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ cy.intercept({

// same as above, but using regex
cy.intercept({
method: '/PUT|PATCH/',
method: /PUT|PATCH/,
url: '**/users/*',
})
```
Expand Down

0 comments on commit def661a

Please sign in to comment.