April 2017
Intermediate to advanced
454 pages
12h 51m
English
Chai is a simple library that implements some functions and throws exceptions when some conditions are not satisfied. Mocha, on the other hand, runs certain bits of code, collects the exceptions, and tries to display them to the user in a nice way.
While it's largely a matter of taste as to what style to use, there are some subtle differences between the three styles.
Read now
Unlock full access