mardi 22 janvier 2019

How to test if an ember component is missing a parameter?

We have a button component that looks like this in our handlebars file.



It's essentially like except it does a little bit more. We recently found a button on our site that was broken because it was missing the link parameter. I was wondering if there was a way to test or enforce that our link parameter is always filled out. I'm not sure off-hand how to test this though or if it is possible.




Aucun commentaire:

Enregistrer un commentaire