3. Making assertions with ChaiJune 17, 2017
As mentioned in the structure, a test case goes red when anything in the
it block throws an exception. First of all, by calling a function in specs we expect that it has been executed without any error. If the code seems to be pretty simple and writing specs for it sounds like a waste of time, it’s still worth to have them, at least for this information.