import '../../../dist/zn.min.js'; import { expect, fixture, html } from '@open-wc/testing'; describe('', () => { it('should render a component', async () => { const el = await fixture(html` `); expect(el).to.exist; }); it('underlines panel headers by default', async () => { const el = await fixture(html` `); const header = el.shadowRoot!.querySelector('.panel__header')!; expect(header.classList.contains('panel__header--underline')).to.be.true; }); it('removes the header underline when header-borderless is set', async () => { const el = await fixture(html` `); const header = el.shadowRoot!.querySelector('.panel__header')!; expect(header.classList.contains('panel__header--underline')).to.be.false; }); });