Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_releases/latest/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
1 change: 0 additions & 1 deletion docs/_releases/v1/fake-xhr-and-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ When `autoRespond` is `true`, respond to requests after this number of milliseco
## Fake server
High-level API to manipulate `FakeXMLHttpRequest` instances.

For help with handling JSON-P please refer to our [notes below](#json-p)

```javascript
{
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v1/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the *nth* [call](#spycall).
Returns the *nth* [call](../spy-call).

Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v1/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an invididual call to a *spied* functi

### `var spyCall = spy.getCall(n);`

Returns the *nth* [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the *nth* [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
1 change: 0 additions & 1 deletion docs/_releases/v10/fake-xhr-and-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ When `autoRespond` is `true`, respond to requests after this number of milliseco

High-level API to manipulate `FakeXMLHttpRequest` instances.

For help with handling JSON-P please refer to our [notes below](#json-p)

```javascript
{
Expand Down
4 changes: 2 additions & 2 deletions docs/_releases/v10/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var sandbox = sinon.createSandbox({
});
```

The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/default-config.js):
The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/v17.0.0/lib/sinon/util/core/default-config.js):

```javascript
sinon.defaultConfig = {
Expand Down Expand Up @@ -177,7 +177,7 @@ var sandbox = sinon.createSandbox({

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v10/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v10/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an invididual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v11.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ If you need to support old runtimes you can try [Sinon 9][compat-doc-v9].

{% include docs/contribute.md %}

[compat-doc]: https://github.com/sinonjs/sinon/COMPATIBILITY.md
[compat-doc]: https://github.com/sinonjs/sinon/blob/main/COMPATIBILITY.md
[compat-doc-v9]: https://github.com/sinonjs/sinon/blob/v9.2.4/COMPATIBILITY.md
4 changes: 2 additions & 2 deletions docs/_releases/v11/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var sandbox = sinon.createSandbox({
});
```

The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/default-config.js):
The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/v17.0.0/lib/sinon/util/core/default-config.js):

```javascript
sinon.defaultConfig = {
Expand Down Expand Up @@ -177,7 +177,7 @@ var sandbox = sinon.createSandbox({

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v11/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v11/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an invididual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v12.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ If you need to support old runtimes you can try [Sinon 9][compat-doc-v9].

{% include docs/contribute.md %}

[compat-doc]: https://github.com/sinonjs/sinon/COMPATIBILITY.md
[compat-doc]: https://github.com/sinonjs/sinon/blob/main/COMPATIBILITY.md
[compat-doc-v9]: https://github.com/sinonjs/sinon/blob/v9.2.4/COMPATIBILITY.md
4 changes: 2 additions & 2 deletions docs/_releases/v12/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var sandbox = sinon.createSandbox({
});
```

The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/default-config.js):
The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/v17.0.0/lib/sinon/util/core/default-config.js):

```javascript
sinon.defaultConfig = {
Expand Down Expand Up @@ -177,7 +177,7 @@ var sandbox = sinon.createSandbox({

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v12/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v12/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v13.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ If you need to support old runtimes you can try [Sinon 9][compat-doc-v9].

{% include docs/contribute.md %}

[compat-doc]: https://github.com/sinonjs/sinon/COMPATIBILITY.md
[compat-doc]: https://github.com/sinonjs/sinon/blob/main/COMPATIBILITY.md
[compat-doc-v9]: https://github.com/sinonjs/sinon/blob/v9.2.4/COMPATIBILITY.md
4 changes: 2 additions & 2 deletions docs/_releases/v13/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var sandbox = sinon.createSandbox({
});
```

The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/default-config.js):
The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/v17.0.0/lib/sinon/util/core/default-config.js):

```javascript
sinon.defaultConfig = {
Expand Down Expand Up @@ -177,7 +177,7 @@ var sandbox = sinon.createSandbox({

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v13/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v13/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v14.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ If you need to support old runtimes you can try [Sinon 9][compat-doc-v9].

{% include docs/contribute.md %}

[compat-doc]: https://github.com/sinonjs/sinon/COMPATIBILITY.md
[compat-doc]: https://github.com/sinonjs/sinon/blob/main/COMPATIBILITY.md
[compat-doc-v9]: https://github.com/sinonjs/sinon/blob/v9.2.4/COMPATIBILITY.md
4 changes: 2 additions & 2 deletions docs/_releases/v14/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var sandbox = sinon.createSandbox({
});
```

The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/default-config.js):
The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/v17.0.0/lib/sinon/util/core/default-config.js):

```javascript
sinon.defaultConfig = {
Expand Down Expand Up @@ -177,7 +177,7 @@ var sandbox = sinon.createSandbox({

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v14/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v14/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v15.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ If you need to support old runtimes you can try [Sinon 9][compat-doc-v9].

{% include docs/contribute.md %}

[compat-doc]: https://github.com/sinonjs/sinon/COMPATIBILITY.md
[compat-doc]: https://github.com/sinonjs/sinon/blob/main/COMPATIBILITY.md
[compat-doc-v9]: https://github.com/sinonjs/sinon/blob/v9.2.4/COMPATIBILITY.md
4 changes: 2 additions & 2 deletions docs/_releases/v15/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var sandbox = sinon.createSandbox({
});
```

The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/default-config.js):
The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/v17.0.0/lib/sinon/util/core/default-config.js):

```javascript
sinon.defaultConfig = {
Expand Down Expand Up @@ -177,7 +177,7 @@ var sandbox = sinon.createSandbox({

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v15/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v15/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
4 changes: 2 additions & 2 deletions docs/_releases/v16/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var sandbox = sinon.createSandbox({
});
```

The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/default-config.js):
The `useFakeTimers` and `useFakeServers` are **false** as opposed to the [defaults in `sinon.defaultConfig`](https://github.com/sinonjs/sinon/blob/v17.0.0/lib/sinon/util/core/default-config.js):

```javascript
sinon.defaultConfig = {
Expand Down Expand Up @@ -177,7 +177,7 @@ var sandbox = sinon.createSandbox({

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v16/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v16/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v17/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const myFacade = sandbox.inject({});

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v17/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v17/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v18/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const myFacade = sandbox.inject({});

#### `sandbox.assert();`

A convenience reference for [`sinon.assert`](./assertions)
A convenience reference for [`sinon.assert`](../assertions)

_Since `sinon@2.0.0`_

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v18/spies.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Returns `true` if spy always returned the provided value.

#### `var spyCall = spy.getCall(n);`

Returns the _nth_ [call](#spycall).
Returns the _nth_ [call](../spy-call).

If _n_ is negative, the _nth_ call from the end is returned. For example, `spy.getCall(-1)` returns the last call, and `spy.getCall(-2)` returns the second to last call.

Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v18/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
2 changes: 1 addition & 1 deletion docs/_releases/v19/spy-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A spy call is an object representation of an individual call to a _spied_ functi

### `var spyCall = spy.getCall(n)`

Returns the _nth_ [call](#spycall). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.
Returns the _nth_ [call](#spy-call). Accessing individual calls helps with more detailed behavior verification when the spy is called more than once.

```javascript
sinon.spy(jQuery, "ajax");
Expand Down
Loading