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
?
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
?
Copyright © 2021 Jogjafile Inc.