Sorry, this video is for subscribers only.

Click here to subscribe!

A CSS Loading Conundrum

We’ve demonstrated the ability to make assertions about our CSS. Now we just need to load the CSS file in our tests. Unfortunately, that turns out to be harder than it sounds. We can programmatically insert a stylesheet link, but what URL should we use? How do we serve CSS from Karma? The answer eludes us.

comments powered by Disqus