Skip to content

Commit

Permalink
Merge pull request #1565 from fatso83/patch-docs
Browse files Browse the repository at this point in the history
Patch docs
  • Loading branch information
mroderick committed Sep 26, 2017
2 parents 95908f4 + dfb9ee6 commit 6197ff3
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_releases/v3.1.0/migrating-to-3.0.md
Expand Up @@ -28,6 +28,10 @@ Calling `sinon.stub` with three arguments will throw an Error. This was deprecat
The [changes in configuration](../fake-timers) for fake timers implicitly affect sandbox creation. If your config used to look like `{ useFaketimers: ["setTimeout", "setInterval"]}`, you
will now need to change it to `{ useFaketimers: { toFake: ["setTimeout", "setInterval"] }}`.

## `sandbox.stub(obj, 'nonExistingProperty')` - Throws
Trying to stub a non-existing property will now fail to ensure you are creating
[less error-prone tests](https://github.com/sinonjs/sinon/issues/1537#issuecomment-323948482).

## Removal of internal helpers
The following internal functions were deprecated as of `sinon@1.x` and have been removed in `sinon@3`:

Expand Down
4 changes: 4 additions & 0 deletions docs/_releases/v3.2.0/migrating-to-3.0.md
Expand Up @@ -28,6 +28,10 @@ Calling `sinon.stub` with three arguments will throw an Error. This was deprecat
The [changes in configuration](../fake-timers) for fake timers implicitly affect sandbox creation. If your config used to look like `{ useFaketimers: ["setTimeout", "setInterval"]}`, you
will now need to change it to `{ useFaketimers: { toFake: ["setTimeout", "setInterval"] }}`.

## `sandbox.stub(obj, 'nonExistingProperty')` - Throws
Trying to stub a non-existing property will now fail to ensure you are creating
[less error-prone tests](https://github.com/sinonjs/sinon/issues/1537#issuecomment-323948482).

## Removal of internal helpers
The following internal functions were deprecated as of `sinon@1.x` and have been removed in `sinon@3`:

Expand Down
4 changes: 4 additions & 0 deletions docs/_releases/v3.2.1/migrating-to-3.0.md
Expand Up @@ -28,6 +28,10 @@ Calling `sinon.stub` with three arguments will throw an Error. This was deprecat
The [changes in configuration](../fake-timers) for fake timers implicitly affect sandbox creation. If your config used to look like `{ useFaketimers: ["setTimeout", "setInterval"]}`, you
will now need to change it to `{ useFaketimers: { toFake: ["setTimeout", "setInterval"] }}`.

## `sandbox.stub(obj, 'nonExistingProperty')` - Throws
Trying to stub a non-existing property will now fail to ensure you are creating
[less error-prone tests](https://github.com/sinonjs/sinon/issues/1537#issuecomment-323948482).

## Removal of internal helpers
The following internal functions were deprecated as of `sinon@1.x` and have been removed in `sinon@3`:

Expand Down
4 changes: 4 additions & 0 deletions docs/_releases/v3.3.0/migrating-to-3.0.md
Expand Up @@ -28,6 +28,10 @@ Calling `sinon.stub` with three arguments will throw an Error. This was deprecat
The [changes in configuration](../fake-timers) for fake timers implicitly affect sandbox creation. If your config used to look like `{ useFaketimers: ["setTimeout", "setInterval"]}`, you
will now need to change it to `{ useFaketimers: { toFake: ["setTimeout", "setInterval"] }}`.

## `sandbox.stub(obj, 'nonExistingProperty')` - Throws
Trying to stub a non-existing property will now fail to ensure you are creating
[less error-prone tests](https://github.com/sinonjs/sinon/issues/1537#issuecomment-323948482).

## Removal of internal helpers
The following internal functions were deprecated as of `sinon@1.x` and have been removed in `sinon@3`:

Expand Down
1 change: 1 addition & 0 deletions docs/release-source/release.md
Expand Up @@ -22,6 +22,7 @@ This page contains the entire Sinon.JS API documentation along with brief int
### Migration guides
* Migrating from [v1.x to v2.0](./migrating-to-2.0)
* Migrating from [v2.x to v3.0](./migrating-to-3.0)
* Migrating from [v3.x to v4.0](./migrating-to-4.0)

### Compatibility

Expand Down
4 changes: 4 additions & 0 deletions docs/release-source/release/migrating-to-3.0.md
Expand Up @@ -28,6 +28,10 @@ Calling `sinon.stub` with three arguments will throw an Error. This was deprecat
The [changes in configuration](../fake-timers) for fake timers implicitly affect sandbox creation. If your config used to look like `{ useFaketimers: ["setTimeout", "setInterval"]}`, you
will now need to change it to `{ useFaketimers: { toFake: ["setTimeout", "setInterval"] }}`.

## `sandbox.stub(obj, 'nonExistingProperty')` - Throws
Trying to stub a non-existing property will now fail to ensure you are creating
[less error-prone tests](https://github.com/sinonjs/sinon/issues/1537#issuecomment-323948482).

## Removal of internal helpers
The following internal functions were deprecated as of `sinon@1.x` and have been removed in `sinon@3`:

Expand Down
14 changes: 14 additions & 0 deletions docs/release-source/release/migrating-to-4.0.md
@@ -0,0 +1,14 @@
---
layout: page
title: Migrating to v4.0 - Sinon.JS
breadcrumb: migrating to 4.0
---

As with all `MAJOR` releases in [`semver`](http://semver.org/), there are breaking changes in `sinon@4`.
This guide will walk you through those changes.

## `sinon.stub(obj, 'nonExistingProperty')` - Throws

Trying to stub a non-existing property will now fail to ensure you are creating
[less error-prone tests](https://github.com/sinonjs/sinon/pull/1557).

0 comments on commit 6197ff3

Please sign in to comment.