How to force a return value from a mocked non-exported function using sinon or proxyquire or rewire?
I am just getting started unit testing nodejs. I have been using mocha, chai and sinon.
I am just getting started unit testing nodejs. I have been using mocha, chai and sinon.
I have the following in Express
When mocking Node dependencies, I’ve happened upon the following libraries: