canjs / can-route

Observable front-end application routing for CanJS.
https://canjs.com/doc/can-route.html
MIT License
10 stars 4 forks source link

Allowing a callback when start() finishes to make tests more consistent #193

Closed phillipskevin closed 6 years ago

phillipskevin commented 6 years ago

This change makes tests more consistent by allowing a _onStartComplete callback to be called after the URL has been updated by start(). This makes it so that we can ensure start() is finished and all necessary bindings have been set up before making any changes to the route during tests.

Closes https://github.com/canjs/can-route/issues/190.