Skip to content

Commit

Permalink
Merge pull request #1550 from kuba-orlik/patch-1
Browse files Browse the repository at this point in the history
Fix double backticks in inline code examples
  • Loading branch information
fatso83 committed Sep 12, 2017
2 parents a90f3ce + 5606815 commit 0a34cf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/release-source/release/fake-xhr-and-server.md
Expand Up @@ -154,13 +154,13 @@ The filter will be called when `xhr.open` is called, with the exact same argumen

### Simulating server responses

#### `request.setStatus(status);``
#### `request.setStatus(status);`

Sets response status (`status` and `statusText` properties).

Status should be a number, the status text is looked up from `sinon.FakeXMLHttpRequest.statusCodes`.

#### `request.setResponseHeaders(object);``
#### `request.setResponseHeaders(object);`

Sets response headers (e.g. `{ "Content-Type": "text/html", /* ... */ }`, updates the `readyState` property and fires `onreadystatechange`.

Expand All @@ -172,7 +172,7 @@ Sets the respond body, updates the `readyState` property and fires `onreadystate
Additionally, populates `responseXML` with a parsed document if [response headers indicate as much](http://www.w3.org/TR/XMLHttpRequest/).


#### `request.respond(status, headers, body);``
#### `request.respond(status, headers, body);`

Calls the above three methods.

Expand Down Expand Up @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances.
```


#### `var server = sinon.createFakeServer([config]);``
#### `var server = sinon.createFakeServer([config]);`

Creates a new server.

Expand Down

0 comments on commit 0a34cf5

Please sign in to comment.