-
*(Refers to [Lunch & Learn: Mocks & Spies](https://www.jamesshore.com/Blog/Lunch-and-Learn/Mocks-and-Spies.html)). Code [here](https://github.com/jamesshore/livestream/tree/2020-05-19-end).*
Hi Jam…
-
This is partly a question, partly a feature request, and partly a start of a discussion. I'd like to know if there is a way to write tests for my app that examine/use IronRouter. Here are two use ca…
-
In referee, we have `assert.json(actual, expected)` which attempts to parse `actual` with `JSON.parse` and compares the result to `expected`. It would be nice to have a matcher that does the same and …
-
Writing some notes down before committing so everyone can agree and provide input
-
Hi there!
I'm having a little trouble with unit testing a method that makes use of winstonjs. Here is a brief example of the implementation:
`router.all('/api', (req, res) => {`
` res.status…
-
Hello! Thanks for making this nice module! I'm wondering how I can "spy on" a mocked module so that I can make assertions about how it was called.
Suppose I am trying to mock the `request-promise`…
-
-
Start to ask if you can detail the shallow and mount differences in documentation, it would be great to know exactly what to expect.
I'm getting what I think could be a bug, or something that I'm m…
-
### Is this a feature request or a bug?
feature
### What is the current behavior?
In the test suite we do things like this to check that stub objects are called correctly:
```js
assert.…
-
I attempted to add this test:
```
test('Sinon integration should function', function(t) {
t.test('A Sinon spy should collect calls', function(st){
var snsSpy = sinon.spy();
awsMock.mo…