mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
use fixture types consistently
This commit is contained in:
@@ -6,7 +6,9 @@ import type SlInclude from './include';
|
||||
|
||||
describe('<sl-include>', () => {
|
||||
it('should load content and emit sl-load', async () => {
|
||||
const el = await fixture(html` <sl-include src="https://jsonplaceholder.typicode.com/posts/1"></sl-include> `);
|
||||
const el = await fixture<SlInclude>(
|
||||
html` <sl-include src="https://jsonplaceholder.typicode.com/posts/1"></sl-include> `
|
||||
);
|
||||
const loadHandler = sinon.spy();
|
||||
|
||||
el.addEventListener('sl-load', loadHandler);
|
||||
@@ -17,7 +19,7 @@ describe('<sl-include>', () => {
|
||||
});
|
||||
|
||||
it('should emit sl-error when content cannot be loaded', async () => {
|
||||
const el = await fixture(html` <sl-include src="https://404"></sl-include> `);
|
||||
const el = await fixture<SlInclude>(html` <sl-include src="https://404"></sl-include> `);
|
||||
const loadHandler = sinon.spy();
|
||||
|
||||
el.addEventListener('sl-error', loadHandler);
|
||||
|
||||
Reference in New Issue
Block a user