mardi 13 février 2018

how to enumerate all routes in an ember test

we need to get a list of all routes from router.js in a test. preferably a lower level test (unit/integration).

use case for context: we have metadata that is required for all routes. this test is to make sure that the appropriate metadata was added, and not forgotten, when a new route is added.

similar questions here and here have been asked, but attempts to adopt/modify those solutions within a test have not been fruitful.




Aucun commentaire:

Enregistrer un commentaire