You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
50
50
51
51
Sandboxes are partially configured by default such that calling:
52
52
53
53
```javascript
54
-
var sandbox =sinon.sandbox.create({});
54
+
var sandbox =sinon.createSandbox({});
55
55
```
56
56
57
57
will merge in extra defaults analogous to:
58
58
59
59
```javascript
60
-
var sandbox =sinon.sandbox.create({
60
+
var sandbox =sinon.createSandbox({
61
61
// ...
62
62
injectInto:null,
63
63
properties: ["spy", "stub", "mock"],
@@ -82,10 +82,10 @@ To get a full sandbox with stubs, spies, etc. **and** fake timers and servers, y
82
82
83
83
```javascript
84
84
// Inject the sinon defaults explicitly.
85
-
var sandbox =sinon.sandbox.create(sinon.defaultConfig);
85
+
var sandbox =sinon.createSandbox(sinon.defaultConfig);
86
86
87
87
// (OR) Add the extra properties that differ from the sinon defaults.
0 commit comments