Testing routers in backbone.js properly?
问题 So I've just started to write tests for my in-progress javascript app, using sinon.js & jasmine.js . Works pretty well overall, but I need to also be able to test my routers. The routers, in their current state, will trigger an number of views and other stuff, terminating the current jasmine.js test by invoking Backbone.navigate dependent on application state and UI itneraction. So how could I test that routing to different locations would work, while keeping the routers "sandboxed" and not