Jasmine Done(In video at - 10:30) -
1. Jasmine has a built-in way to handle async code and that’s passed to beforeEach(), afterEach() and it() test methods and is called done() callback.
2. done() callback are responsible for chaining promises, handling errors, and calling done() at the appropriate moments.
3. The test specs are completed after the invocation of done() callback and this is its primary feature.
Async..WhenStable (In video at - 14:30) -
1. Wraps a test function in an asynchronous test zone.
2. Whenstable helps us to test promises by allowing us to wait until all the promises have completed.
3. The fixture.whenStable() returns a promise that resolves when the JavaScript engines task queue becomes empty.