Best sights for ruger pc carbine

Jasmine spy on async function

Since the above is just dealing with data, there’s no difference between mocking it in Jest or using sinon and the test runner of your choice (Mocha, AVA, tape, Jasmine…). Mocking/stubbing res (a simple Express response) with Jest. A mockResponse function would look like the following, our code under test only calls status and json ...