ember-inline-svg
ember-inline-svg copied to clipboard
Missing Test Cases: Error Handling for Failing Optimizations and Missing .svg Files
If I would know how, I would have written these tests myself, but I couldn't find any resources on writing tests for error / exception handling with broccoli. So the untested cases we have are:
- [ ] Test that
ember-inline-svg
throws an error during build time, if an SVG optimization has failed. - [ ] Test that
ember-inline-svg
emits an "empty"svg.js
, if there are no.svg
files present.
Another case that is untested:
- [ ] Throw an error, if the handlebars helper could not find the coresponding
.svg
. StackOverflow- [x] Refactor tests
This one is easy to fix tho. Expect a PR soon. Edit: Not so easy as I thought. Here be StackOverflow.
Good question, @rwjblue any suggestions?