Bookmarks tagged [sinonjs]
https://www.amadousall.com/unit-testing-angular-stubs-vs-spies-vs-mocks/
In this article, I will show you the differences between the various kinds of test doubles, and how to use them when unit testing Angular applications using Jasmine.
- 📆 published on: 2018-02-28
- tags: testing, jasmine, sinonjs, test-double, angular
https://semaphoreci.com/community/tutorials/best-practices-for-spies-stubs-and-mocks-in-sinon-js
In this article, we'll show you the differences between spies, stubs and mocks, when and how to use them, and give you a set of best practices to help you avoid common pitfalls.
- 📆 published on: 2015-12-05
- tags: node.js, testing, unit-testing, sinonjs
Standalone test spies, stubs and mocks for JavaScript. Works with any unit testing framework.
- tags: javascript, node.js, unit-testing, testing, sinonjs
source code