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('propagates contained and square to its radios', async () => { const el = await fixture(html` One Two `); await new Promise(resolve => requestAnimationFrame(resolve)); el.querySelectorAll('zn-radio').forEach(child => { expect(child).to.have.attribute('contained'); expect(child).to.have.attribute('square'); }); }); });