Sinon is a mocking framework for JavaScript, which can create spies, stubs and mocks.
I am having trouble getting my head round how i can use sinon to mock a call to postgres which …