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('right aligns content when align-end is set', async () => { const el = await fixture(html` $100.00 `); const content = el.shadowRoot?.querySelector('.item__content-inner'); expect(content).to.exist; expect(getComputedStyle(content!).textAlign).to.equal('right'); }); });