This commit is contained in:
2026-04-24 14:03:17 +02:00
commit 0191347312
31 changed files with 16354 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { html } from 'lit';
import { fixture, expect } from '@open-wc/testing';
import type { AppCfpodcasts } from '../src/app-index.js';
import '../src/app-cfpodcasts.js';
describe('AppCfpodcasts', () => {
let element: AppCfpodcasts;
beforeEach(async () => {
element = await fixture(html`<app-cfpodcasts></app-cfpodcasts>`);
});
it('renders a h1', () => {
const h1 = element.shadowRoot!.querySelector('h1')!;
expect(h1).to.exist;
expect(h1.textContent).to.equal('My app');
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible();
});
});