SMock
Simple Mock for javascript. Straight forward and no hussle object mocking.
$ npm install smock
Example
var { thiscolor = color; thishealthy = 'yes';}; Fruitprototype = { return Math; }; var redFruit = 'red'; redFruitcolor;// 'red'redFruithealthy;// 'yes'redFruit;// 5 var mockedRedFruit = ; mockedRedFruithealthy;// 'a bit'mockedRedFruitcolor;// 'red'mockedRedFruit;// 2redFruithealthy;// 'yes'// You get the point
var uberChangedFruit = ; uberChangedFruitcolor;// 'blue'uberChangedFruit;// 7uberChangedFruithealthy;// 'yes'