import { expect, html, fixture, nextFrame } from '@open-wc/testing';
import { localizeTearDown } from '@lion/localize/test-helpers.js';
import '@lion/checkbox/lion-checkbox.js';
import '../lion-checkbox-group.js';
beforeEach(() => {
localizeTearDown();
});
describe('', () => {
it('can be required', async () => {
const el = await fixture(html`
`);
await nextFrame();
expect(el.error.required).to.be.true;
el.formElements['sports[]'][0].checked = true;
expect(el.error.required).to.be.undefined;
});
});