Skip to content

Commit

Permalink
docs: revert "delayMs -> delay" (#3629)
Browse files Browse the repository at this point in the history
This reverts commit b22fa4c.
  • Loading branch information
flotwig authored Mar 3, 2021
1 parent 9ef0799 commit b59bc48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/api/commands/intercept.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Here are the available properties on `StaticResponse`:
/**
* Milliseconds to delay before the response is sent.
*/
delay?: number
delayMs?: number
/**
* Kilobits per second to send 'body'.
*/
Expand Down Expand Up @@ -646,9 +646,9 @@ The available functions on `res` are:
*/
send(): void
/**
* Wait for 'delay' milliseconds before sending the response to the client.
* Wait for 'delayMs' milliseconds before sending the response to the client.
*/
delay: (delay: number) => IncomingHttpResponse
delay: (delayMs: number) => IncomingHttpResponse
/**
* Serve the response at 'throttleKbps' kilobytes per second.
*/
Expand All @@ -657,6 +657,7 @@ The available functions on `res` are:
```
{% history %}
{% url "7.0.0" changelog#7-0-0 %} | Renamed `delay` property to `delayMs`.
{% url "7.0.0" changelog#7-0-0 %} | Removed `cy.route2()` alias for `cy.intercept()`.
{% url "6.4.0" changelog#6-4-0 %} | Renamed `delayMs` property to `delay` (backwards-compatible).
{% url "6.2.0" changelog#6-2-0 %} | Added `matchUrlAgainstPath` option to `RouteMatcher`.
Expand Down

0 comments on commit b59bc48

Please sign in to comment.