unexpected-sinon
Advanced tools
Comparing version 0.0.4 to 0.1.0
{ | ||
"name": "unexpected-sinon", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -180,4 +180,2 @@ # Unexpected-sinon | ||
## TODO | ||
### was always called with exactly | ||
@@ -187,2 +185,6 @@ | ||
```js | ||
expect(spy, 'was always called with exactly', 'foo', 'bar', sinon.match.truthy); | ||
``` | ||
### threw | ||
@@ -194,4 +196,16 @@ | ||
```js | ||
expect(spy, 'threw'); | ||
expect(spy, 'threw', 'TypeError'); | ||
expect(spy, 'threw', error); | ||
``` | ||
### always threw | ||
Like above, only required for all calls to the spy. | ||
```js | ||
expect(spy, 'always threw'); | ||
expect(spy, 'always threw', 'TypeError'); | ||
expect(spy, 'always threw', error); | ||
``` |
140399
209