I have created an ember-cli addon the adds linting capabilities. For this I have used a broccoli plugin and the ember-cli lintTree
hook to invoke the linting action.
This all works fine but I am unsure how to test what I have written, which is essentially just the integration part. Unlike when we would create and test models (or controller, mixins, etc...) that are generated unit test templates, it is unclear what I need to do in order to test middleware integration.
This need only be simple. Is there a way I can test that the output in the terminal is what I expect, or be able to test if the broccoli plugin has thrown an exception?
Aucun commentaire:
Enregistrer un commentaire