react_redux_webpack | In Progress - React Redux Routes Webpack 2 ES6 | Frontend Framework library
kandi X-RAY | react_redux_webpack Summary
kandi X-RAY | react_redux_webpack Summary
In Progress - React, Redux, Routes, Webpack 2, ES6, NodeJS, Mongo
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react_redux_webpack
react_redux_webpack Key Features
react_redux_webpack Examples and Code Snippets
Community Discussions
Trending Discussions on react_redux_webpack
QUESTION
I have tried to work out why this test is failing but cannot determine the reason, because I cannot see what the sinon spy object is being called with.
Is there a better way to test sinon.calledWith so it will show the result and expected result?
In the test below the following check passes expect(onLoginClick.called).to.equal(true);
but this does not expect(onLoginClick.calledWith(expected)).to.equal(true);
.
- Any ideas why?
- How can I check myself by seeing the actual value onLoginClick is called with vs the expected?
I am running the tests via "npm run test", the project can be cloned and run from https://github.com/Rob-Leggett/react_redux_webpack
Thanks for any answers and time taken to assist with this question.
Test
...ANSWER
Answered 2017-Jan-28 at 09:33To find out more then true/false in your test, you can can get the args from the Sinon spy like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react_redux_webpack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page