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
Copy file name to clipboardExpand all lines: CHANGES.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## 11.1.2
4
4
5
5
- Upgrade @sinonjs/fake-timers to latest, see https://github.com/sinonjs/fake-timers/blob/master/CHANGELOG.md#712--2021-05-28
6
-
- Copy over acessor properties to target object #2387
6
+
- Copy over accessor properties to target object #2387
7
7
8
8
## 11.1.1
9
9
@@ -289,7 +289,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
289
289
290
290
## 5.1.1
291
291
292
-
- Remove ES2015 'module' field for 5x branch (fix in seperate branch - see tag)
292
+
- Remove ES2015 'module' field for 5x branch (fix in separate branch - see tag)
293
293
294
294
## 5.1.0
295
295
@@ -526,7 +526,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
526
526
527
527
## 2.3.1
528
528
529
-
- Make calledAfter symetric with calledBefore (#1407)
529
+
- Make calledAfter symmetric with calledBefore (#1407)
530
530
531
531
## 2.3.0
532
532
@@ -843,7 +843,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
843
843
- Add support for es6 Symbol to wrapMethod method
844
844
- Convert values to strings with toString instead of String()
845
845
- Add typeOf matcher for symbol type
846
-
- Make expectetation fail as expected when called with wrong Symbol
846
+
- Make expectation fail as expected when called with wrong Symbol
847
847
- Make mock report expected TypeError when expecting number and given symbol
848
848
- Add support for es6 Symbol to match.has method
849
849
- Make error message when failing to stub method support es6 symbol
@@ -998,7 +998,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
998
998
- cleaning up left over blank lines
999
999
- CommonJS-ified _some_ of the things
1000
1000
- updated readyStateChange to align to the w3c spec (somewhat)
1001
-
- cleaned up a few unreleated tests
1001
+
- cleaned up a few unrelated tests
1002
1002
- updated tests to reflect reality
1003
1003
- added some additional progress event verification
1004
1004
- added a test to ensure load is not fired before abort
@@ -1015,7 +1015,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
1015
1015
1016
1016
## 1.17.0
1017
1017
1018
-
- Fix #821 where Sinon.JS would leak a setImmdiate into global scope
1018
+
- Fix #821 where Sinon.JS would leak a setImmediate into global scope
1019
1019
- Removed sinon-timers from the build. refs #811
1020
1020
- Added flag that, when set to true, makes sinon.logError throw errors synchronously.
1021
1021
- Fix #777: Support non-enumerable props when stubbing objects
@@ -1183,7 +1183,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
1183
1183
- Update call properties even if exceptions are thrown (Tim Perry)
1184
1184
- Reverse matching order for fake server (Gordon L. Hempton)
1185
1185
- Fix restoring globals on another frame fails on Firefox (Burak Yiğit Kaya)
1186
-
- Handle stubbing falsey properties (Tim Perry)
1186
+
- Handle stubbing falsy properties (Tim Perry)
1187
1187
- Set returnValues correctly when the spied function is called as a constructor (Tim Perry)
1188
1188
- When creating a sandbox, do not overwrite existing properties when inject
1189
1189
properties into an object (Sergio Cinos)
@@ -1251,7 +1251,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
1251
1251
- Ensure window.Image can be stubbed. (Adrian Phinney)
1252
1252
- Fix spy() in IE 8 (Scott Andrews)
1253
1253
- Fix sinon base in IE 8 (Scott Andrews)
1254
-
- Format arguments ouput when mock excpetation is not met (kbackowski)
1254
+
- Format arguments output when mock expectation is not met (kbackowski)
1255
1255
- Calling spy.reset directly from stub.reset (Thomas Meyer)
1256
1256
1257
1257
## 1.5.0
@@ -1279,7 +1279,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
Copy file name to clipboardExpand all lines: docs/_howto/stub-dependency.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ layout: page
3
3
title: How to stub a dependency of a module
4
4
---
5
5
6
-
Sinon is a stubbing library, not a module interception library. Stubbing dependencies is highly dependant on your enviroment and the implementation. For Node environments, we usually recommend solutions targetting[link seams](../link-seams-commonjs/) or explicit dependency injection. Though in some more basic cases, you can get away with only using Sinon by modifying the module exports of the dependency.
6
+
Sinon is a stubbing library, not a module interception library. Stubbing dependencies is highly dependant on your enviroment and the implementation. For Node environments, we usually recommend solutions targeting[link seams](../link-seams-commonjs/) or explicit dependency injection. Though in some more basic cases, you can get away with only using Sinon by modifying the module exports of the dependency.
7
7
8
8
To stub a dependency (imported module) of a module under test you have to import it explicitly in your test and stub the desired method. For the stubbing to work, the stubbed method cannot be [destructured](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment), neither in the module under test nor in the test.
Copy file name to clipboardExpand all lines: docs/changelog.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ permalink: /releases/changelog
9
9
==================
10
10
11
11
* Upgrade @sinonjs/fake-timers to latest, see https://github.com/sinonjs/fake-timers/blob/master/CHANGELOG.md#712--2021-05-28
12
-
* Copy over acessor properties to target object #2387
12
+
* Copy over accessor properties to target object #2387
13
13
14
14
11.1.1 / 2021-05-26
15
15
==================
@@ -351,7 +351,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
351
351
5.1.1 / 2018-06-07
352
352
==================
353
353
354
-
* Remove ES2015 'module' field for 5x branch (fix in seperate branch - see tag)
354
+
* Remove ES2015 'module' field for 5x branch (fix in separate branch - see tag)
355
355
356
356
5.1.0 / 2018-06-06
357
357
==================
@@ -640,7 +640,7 @@ The major release is caused by removing old mistakes and upgrading dependencies
640
640
2.3.1 / 2017-05-23
641
641
==================
642
642
643
-
* Make calledAfter symetric with calledBefore (#1407)
643
+
* Make calledAfter symmetric with calledBefore (#1407)
644
644
645
645
2.3.0 / 2017-05-22
646
646
==================
@@ -972,7 +972,7 @@ v2.0.0-pre.5 / 2016-12-31
972
972
* Add support for es6 Symbol to wrapMethod method
973
973
* Convert values to strings with toString instead of String()
974
974
* Add typeOf matcher for symbol type
975
-
* Make expectetation fail as expected when called with wrong Symbol
975
+
* Make expectation fail as expected when called with wrong Symbol
976
976
* Make mock report expected TypeError when expecting number and given symbol
977
977
* Add support for es6 Symbol to match.has method
978
978
* Make error message when failing to stub method support es6 symbol
@@ -1128,7 +1128,7 @@ v2.0.0-pre.5 / 2016-12-31
1128
1128
* cleaning up left over blank lines
1129
1129
* CommonJS-ified *some* of the things
1130
1130
* updated readyStateChange to align to the w3c spec (somewhat)
1131
-
* cleaned up a few unreleated tests
1131
+
* cleaned up a few unrelated tests
1132
1132
* updated tests to reflect reality
1133
1133
* added some additional progress event verification
1134
1134
* added a test to ensure load is not fired before abort
@@ -1146,7 +1146,7 @@ v2.0.0-pre.5 / 2016-12-31
1146
1146
1.17.0 / 2015-09-22
1147
1147
==================
1148
1148
1149
-
* Fix #821 where Sinon.JS would leak a setImmdiate into global scope
1149
+
* Fix #821 where Sinon.JS would leak a setImmediate into global scope
1150
1150
* Removed sinon-timers from the build. refs #811
1151
1151
* Added flag that, when set to true, makes sinon.logError throw errors synchronously.
1152
1152
* Fix #777: Support non-enumerable props when stubbing objects
@@ -1309,7 +1309,7 @@ v2.0.0-pre.5 / 2016-12-31
1309
1309
* Update call properties even if exceptions are thrown (Tim Perry)
1310
1310
* Reverse matching order for fake server (Gordon L. Hempton)
1311
1311
* Fix restoring globals on another frame fails on Firefox (Burak Yiğit Kaya)
1312
-
* Handle stubbing falsey properties (Tim Perry)
1312
+
* Handle stubbing falsy properties (Tim Perry)
1313
1313
* Set returnValues correctly when the spied function is called as a constructor (Tim Perry)
1314
1314
* When creating a sandbox, do not overwrite existing properties when inject
1315
1315
properties into an object (Sergio Cinos)
@@ -1374,7 +1374,7 @@ v2.0.0-pre.5 / 2016-12-31
1374
1374
* Ensure window.Image can be stubbed. (Adrian Phinney)
1375
1375
* Fix spy() in IE 8 (Scott Andrews)
1376
1376
* Fix sinon base in IE 8 (Scott Andrews)
1377
-
* Format arguments ouput when mock excpetation is not met (kbackowski)
1377
+
* Format arguments output when mock expectation is not met (kbackowski)
1378
1378
* Calling spy.reset directly from stub.reset (Thomas Meyer)
Copy file name to clipboardExpand all lines: docs/release-source/release/fake-xhr-and-server.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,7 +284,7 @@ Causes all queued asynchronous requests to receive a response.
284
284
285
285
If none of the responses added through `respondWith()` match, the default response is `[404, {}, ""]`.
286
286
287
-
Synchronous requests are responded to immediately so make sure to call `respondWith()` to configure the server response before calling `respond()`. If not, you will recieve the default `404 NOT FOUND` response.
287
+
Synchronous requests are responded to immediately so make sure to call `respondWith()` to configure the server response before calling `respond()`. If not, you will receive the default `404 NOT FOUND` response.
288
288
289
289
If called with arguments, `respondWith()` will be called with those arguments before responding to requests.
Copy file name to clipboardExpand all lines: docs/release-source/release/spy-call.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ breadcrumb: spy-call
6
6
7
7
## Spy call
8
8
9
-
A spy call is an object representation of an invididual call to a _spied_ function, which could be a [fake](../fakes), [spy](../spies), [stub](../stubs) or [mock method](../mocks).
9
+
A spy call is an object representation of an individual call to a _spied_ function, which could be a [fake](../fakes), [spy](../spies), [stub](../stubs) or [mock method](../mocks).
0 commit comments