Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 845 Bytes

Writing Test Suites.md

File metadata and controls

8 lines (6 loc) · 845 Bytes

Writing Test Suites (Lesson 22)

Correctiong Asynchronous Test

  • _[OPTIONAL]_If you are curious to see what happens in each combination of passing in vs. calling done, one of our students tried all of them to see what would happen. The results in this thread are illuminating and go beyond the demos for Jasmine 2.1.2..

  • Take special note of the case where if you pass in the done function as an argument, you must call it (=otherwise things break!).

  • The Jasmine team might accept a pull request to update this information for all students.

  • If you test async, NO NEED to pass in and call done.