xblock_editor_spec.js
4.33 KB
-
Improve response handling in AjaxHelpers · b2a0b2f7
I've changed the logic so that AjaxHelpers keeps track of which requests have not yet had mock responses sent. This ensures that every response is handled before moving on to the next one, rather than always handling the last request. My intention is that this won't allow bugs to creep in where a request isn't fired and instead the test responds to an old request. It also should ensure that extra events aren't accidentally fired.
Andy Armstrong committed