Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code


Sinon is a mocking framework for JavaScript, which can create spies, stubs and mocks.


Quality Example
Many more features

"It should be mentioned that sinon provides many more features for smart stubs spies than jasmine so both can be used together"

from question "How to mock angularJs filter value for unit tests"

Better choice

"The thing that makes sinon a better choice than jasmine spies is that it is capable of programming spies expectations withargs ... .called."

from question "Angular Unit tests: Mocking multiple independent promises"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0