New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fakeServer requests count always is null #1448
Comments
|
Thanks for the answer. But in the case when I use |
Yes, there is. The solution to seeing the requests in your
The changes would look like: beforeEach(done => {
// ...
axios.get(...);
setTimeout(() => {
console.log("%c server.requests", "color: #C78B41", server.requests);
done();
});
}); |
Wow. That's works! Thanks. Finally, I got the way to build required tests. |
What did you expect to happen? I expect that sinon.fakeServer.requests count was more that 1
What actually happens sinon.fakeServer.requests always is null
How to reproduce
I call `axios.get` requests directly in test code and also it is called in `componentWillMount` method of a react.js component
The text was updated successfully, but these errors were encountered: