Promise pattern for Jasmine

Jasmine is a great tool for Unit Testing, but its async test is painful. I’ve created a very simple promise pattern to make this kind of test easier.

the usage is pretty simple, you can either use directly Promise, or use test chain.


chained tests.  all the methods of each test share the same scope, so you can setup the values, then use them in other methods.



Leave a Reply