update test

This commit is contained in:
Cory LaViska
2021-09-24 09:18:28 -04:00
parent 898179b645
commit 521f6fe3f1

View File

@@ -19,7 +19,9 @@ describe('<sl-include>', () => {
});
it('should emit sl-error when content cannot be loaded', async () => {
const el = await fixture<SlInclude>(html` <sl-include src="https://404"></sl-include> `);
const el = await fixture<SlInclude>(
html` <sl-include src="https://jsonplaceholder.typicode.com/not-found"></sl-include> `
);
const loadHandler = sinon.spy();
el.addEventListener('sl-error', loadHandler);