Using Angular.js Mocha Chai sinon