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('should accept an initial value', async () => { const el = await fixture(html` `); expect(el.value).to.equal('# hello'); }); it('should read value from light-DOM text content when no value is set', async () => { const el = await fixture(html` Body text`); expect(el.value).to.equal('Body text'); }); });