mozilla/browserid — Issue #520: Break the xhr mock into its own file to be shared among all unit tests
Author: shane-tomlinson
Created: 2011-11-02 09:37:21+00:00
State: open
Labels: ★★★

I stub in BrowserID.Network in various places, but this has led to several separate mini-mocks. A better solution is to use the real BrowserID.Network, but stub in the xhr requests using the xhr mock from the BrowserID.Network unit tests. This would allow us to test the full stack and any changes to the backend could be reflected in the xhr mock to ensure the entire system functions properly.