How to mock HTML Import for testing

499 Views Asked by At

I am writing tests for my custom element. I use Web Component Tester, so it would be great to use Sinon.js for mocking.

My custom element adds <link rel="import" href="something.html"> dynamically.

How can I stub content for something.html?

0

There are 0 best solutions below