From b14a2616584c849f2f1b4ad1e57464527fc4e4da Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Sat, 28 Oct 2017 12:06:15 +0200 Subject: [PATCH] Docs: fix invalid syntax of backticks in headers --- docs/_releases/v1.17.6/fake-xhr-and-server.md | 8 ++++---- docs/_releases/v1.17.7/fake-xhr-and-server.md | 8 ++++---- docs/_releases/v2.0.0/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.2.0/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.0/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.1/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.2/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.3/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.4/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.5/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.6/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.7/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.3.8/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.4.0/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v2.4.1/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v3.0.0/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v3.1.0/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v3.2.0/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v3.2.1/fake-xhr-and-server.md | 10 +++++----- docs/_releases/v3.3.0/fake-xhr-and-server.md | 2 +- docs/_releases/v4.0.0/fake-xhr-and-server.md | 2 +- docs/_releases/v4.0.1/fake-xhr-and-server.md | 2 +- docs/_releases/v4.0.2/fake-xhr-and-server.md | 2 +- docs/release-source/release/fake-xhr-and-server.md | 2 +- 24 files changed, 98 insertions(+), 98 deletions(-) diff --git a/docs/_releases/v1.17.6/fake-xhr-and-server.md b/docs/_releases/v1.17.6/fake-xhr-and-server.md index a495ae81c..973efc74f 100644 --- a/docs/_releases/v1.17.6/fake-xhr-and-server.md +++ b/docs/_releases/v1.17.6/fake-xhr-and-server.md @@ -49,7 +49,7 @@ after the first file. ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -160,7 +160,7 @@ The filter will be called when `xhr.open` is called, with the exact same argumen ### Simulating server responses -#### `request.setResponseHeaders(object);`` +#### `request.setResponseHeaders(object);` Sets response headers (e.g. `{ "Content-Type": "text/html", /* ... */ }`, updates the `readyState` property and fires `onreadystatechange`. @@ -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 two methods and sets the `status` and `statusText` properties. @@ -222,7 +222,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v1.17.7/fake-xhr-and-server.md b/docs/_releases/v1.17.7/fake-xhr-and-server.md index a495ae81c..973efc74f 100644 --- a/docs/_releases/v1.17.7/fake-xhr-and-server.md +++ b/docs/_releases/v1.17.7/fake-xhr-and-server.md @@ -49,7 +49,7 @@ after the first file. ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -160,7 +160,7 @@ The filter will be called when `xhr.open` is called, with the exact same argumen ### Simulating server responses -#### `request.setResponseHeaders(object);`` +#### `request.setResponseHeaders(object);` Sets response headers (e.g. `{ "Content-Type": "text/html", /* ... */ }`, updates the `readyState` property and fires `onreadystatechange`. @@ -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 two methods and sets the `status` and `statusText` properties. @@ -222,7 +222,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.0.0/fake-xhr-and-server.md b/docs/_releases/v2.0.0/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.0.0/fake-xhr-and-server.md +++ b/docs/_releases/v2.0.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.2.0/fake-xhr-and-server.md b/docs/_releases/v2.2.0/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.2.0/fake-xhr-and-server.md +++ b/docs/_releases/v2.2.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.0/fake-xhr-and-server.md b/docs/_releases/v2.3.0/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.0/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.1/fake-xhr-and-server.md b/docs/_releases/v2.3.1/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.1/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.1/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.2/fake-xhr-and-server.md b/docs/_releases/v2.3.2/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.2/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.2/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.3/fake-xhr-and-server.md b/docs/_releases/v2.3.3/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.3/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.3/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.4/fake-xhr-and-server.md b/docs/_releases/v2.3.4/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.4/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.4/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.5/fake-xhr-and-server.md b/docs/_releases/v2.3.5/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.5/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.5/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.6/fake-xhr-and-server.md b/docs/_releases/v2.3.6/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.6/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.6/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.7/fake-xhr-and-server.md b/docs/_releases/v2.3.7/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.3.7/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.7/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.3.8/fake-xhr-and-server.md b/docs/_releases/v2.3.8/fake-xhr-and-server.md index 5cf6c1e10..f72559fed 100644 --- a/docs/_releases/v2.3.8/fake-xhr-and-server.md +++ b/docs/_releases/v2.3.8/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.4.0/fake-xhr-and-server.md b/docs/_releases/v2.4.0/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.4.0/fake-xhr-and-server.md +++ b/docs/_releases/v2.4.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v2.4.1/fake-xhr-and-server.md b/docs/_releases/v2.4.1/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v2.4.1/fake-xhr-and-server.md +++ b/docs/_releases/v2.4.1/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v3.0.0/fake-xhr-and-server.md b/docs/_releases/v3.0.0/fake-xhr-and-server.md index 24f8d90fb..f2f481e81 100644 --- a/docs/_releases/v3.0.0/fake-xhr-and-server.md +++ b/docs/_releases/v3.0.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -225,7 +225,7 @@ High-level API to manipulate `FakeXMLHttpRequest` instances. ``` -#### `var server = sinon.fakeServer.create([config]);`` +#### `var server = sinon.fakeServer.create([config]);` Creates a new server. diff --git a/docs/_releases/v3.1.0/fake-xhr-and-server.md b/docs/_releases/v3.1.0/fake-xhr-and-server.md index 1365a5ed5..85188b366 100644 --- a/docs/_releases/v3.1.0/fake-xhr-and-server.md +++ b/docs/_releases/v3.1.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -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. diff --git a/docs/_releases/v3.2.0/fake-xhr-and-server.md b/docs/_releases/v3.2.0/fake-xhr-and-server.md index 1365a5ed5..85188b366 100644 --- a/docs/_releases/v3.2.0/fake-xhr-and-server.md +++ b/docs/_releases/v3.2.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -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. diff --git a/docs/_releases/v3.2.1/fake-xhr-and-server.md b/docs/_releases/v3.2.1/fake-xhr-and-server.md index 1365a5ed5..85188b366 100644 --- a/docs/_releases/v3.2.1/fake-xhr-and-server.md +++ b/docs/_releases/v3.2.1/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. @@ -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`. @@ -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. @@ -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. diff --git a/docs/_releases/v3.3.0/fake-xhr-and-server.md b/docs/_releases/v3.3.0/fake-xhr-and-server.md index ab98663eb..85188b366 100644 --- a/docs/_releases/v3.3.0/fake-xhr-and-server.md +++ b/docs/_releases/v3.3.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. diff --git a/docs/_releases/v4.0.0/fake-xhr-and-server.md b/docs/_releases/v4.0.0/fake-xhr-and-server.md index ab98663eb..85188b366 100644 --- a/docs/_releases/v4.0.0/fake-xhr-and-server.md +++ b/docs/_releases/v4.0.0/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. diff --git a/docs/_releases/v4.0.1/fake-xhr-and-server.md b/docs/_releases/v4.0.1/fake-xhr-and-server.md index 51e204bd4..d536b9254 100644 --- a/docs/_releases/v4.0.1/fake-xhr-and-server.md +++ b/docs/_releases/v4.0.1/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. diff --git a/docs/_releases/v4.0.2/fake-xhr-and-server.md b/docs/_releases/v4.0.2/fake-xhr-and-server.md index ab98663eb..85188b366 100644 --- a/docs/_releases/v4.0.2/fake-xhr-and-server.md +++ b/docs/_releases/v4.0.2/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests. diff --git a/docs/release-source/release/fake-xhr-and-server.md b/docs/release-source/release/fake-xhr-and-server.md index ab98663eb..85188b366 100644 --- a/docs/release-source/release/fake-xhr-and-server.md +++ b/docs/release-source/release/fake-xhr-and-server.md @@ -43,7 +43,7 @@ The fake server and XHR can be used completely stand-alone by downloading `sinon ### `sinon.useFakeXMLHttpRequest` -#### var xhr = sinon.useFakeXMLHttpRequest();" +#### `var xhr = sinon.useFakeXMLHttpRequest();` Causes Sinon to replace the native `XMLHttpRequest` object in browsers that support it with a custom implementation which does not send actual requests.