Javascript: Mocking Constructor using Sinon
Mocking JavaScript constructor with Sinon.JS
Test constructor calling a method with Sinon Bind Mocking Function inside function Mocking a constructor (or other function) in a Node.js module outside of this module Sinon Not Mocking db-mysql Node.js library Html mocking tool Mocking constructor of $resource object in AngularJS Mocking a require()'d function using Sinon Mocking - setting a property before calling the constructor Mocking Angular $resource Jasmine - correctly mocking an object with a constructor Mocking $state change in AngularJS controller Not a function (mocking error?) javascript mocking a prototype function error Stubbing and/or mocking a class in sinon.js? Mocking class in Sinon.js and instanceof Jasmine mocking a constructor within a function Mocking $http Data in AngularJS Mocking success method on jQuery ajax call is not working as expected AngularJS Mocking $http returns Error Mocking a javascript method with ScrewUnit Mocking angular js service call in controller node: mocking a function with a callback argument Mocking Postgres for unit tests with Sinon.js in Node.js Mocking jQuery to test basic use Mocking a Service into Controller node, unit-testing and mocking with sinon Mocking Redis Constructor with Sinon mocking window.location.href in Javascript Mocking a function inside the method being tested