socketless
socketless copied to clipboard
Confirm that the webclient tests properly fail
There is a bit of failure indirection going on due to the getPage error handler and then also the getClasses error handler, where both need to work with the test-level error variable.
If the initial getPage doesn't have an error handler, or doesn't set the test-level error in response to an error then the test will not fail despite there being code in place in getClasses to pass the test-level error through to the done() function.