import { localizeTearDown } from '@lion/localize/test-helpers.js'; import { expect, fixture, html } from '@open-wc/testing'; import '../lion-checkbox-group.js'; import '../lion-checkbox.js'; beforeEach(() => { localizeTearDown(); }); describe('', () => { it('is accessible', async () => { const el = await fixture(html` `); await expect(el).to.be.accessible(); }); it('is accessible when pre-selected', async () => { const el = await fixture(html` `); await expect(el).to.be.accessible(); }); it('is accessible when disabled', async () => { const el = await fixture(html` `); await expect(el).to.be.accessible(); }); it("should throw exception if name doesn't end in []", async () => { const el = await fixture(html``); el.name = 'woof'; let err; try { await el.updateComplete; } catch (e) { err = e; } expect(err).to.be.an.instanceof(Error); expect(err.message).to.equal('Names should end in "[]".'); }); });