Skip to content

Commit 2a04615

Browse files
committed
Fix docs regression introduced by #1523
1 parent f1d6e75 commit 2a04615

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/release-source/release/sandbox.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Sandboxes removes the need to keep track of every fake created, which greatly si
1010
var sinon = require('sinon');
1111

1212
var myAPI = { hello: function () {} };
13-
var sandbox = sinon.sandbox.create();
13+
var sandbox = sinon.createSandbox();
1414

1515
describe('myAPI.hello method', function () {
1616

@@ -39,25 +39,25 @@ describe('myAPI.hello method', function () {
3939

4040
## Sandbox API
4141

42-
#### `var sandbox = sinon.sandbox.create();`
42+
#### `var sandbox = sinon.createSandbox();`
4343

4444
Creates a sandbox object with spies, stubs, and mocks.
4545

4646

47-
#### `var sandbox = sinon.sandbox.create(config);`
47+
#### `var sandbox = sinon.createSandbox(config);`
4848

49-
The `sinon.sandbox.create(config)` method is often an integration feature, and can be used for scenarios including a global object to coordinate all fakes through.
49+
The `sinon.createSandbox(config)` method is often an integration feature, and can be used for scenarios including a global object to coordinate all fakes through.
5050

5151
Sandboxes are partially configured by default such that calling:
5252

5353
```javascript
54-
var sandbox = sinon.sandbox.create({});
54+
var sandbox = sinon.createSandbox({});
5555
```
5656

5757
will merge in extra defaults analogous to:
5858

5959
```javascript
60-
var sandbox = sinon.sandbox.create({
60+
var sandbox = sinon.createSandbox({
6161
// ...
6262
injectInto: null,
6363
properties: ["spy", "stub", "mock"],
@@ -82,10 +82,10 @@ To get a full sandbox with stubs, spies, etc. **and** fake timers and servers, y
8282

8383
```javascript
8484
// Inject the sinon defaults explicitly.
85-
var sandbox = sinon.sandbox.create(sinon.defaultConfig);
85+
var sandbox = sinon.createSandbox(sinon.defaultConfig);
8686

8787
// (OR) Add the extra properties that differ from the sinon defaults.
88-
var sandbox = sinon.sandbox.create({
88+
var sandbox = sinon.createSandbox({
8989
useFakeTimers: true
9090
useFakeServer: true
9191
});

0 commit comments

Comments
 (0)