@lion/radio
Version:
Provide a way for users to check a single option amongst a set of choices
13 lines (11 loc) • 356 B
JavaScript
import { expect, fixture, nextFrame } from '@open-wc/testing';
import '../lion-radio.js';
describe('<lion-radio>', () => {
it('should have type = radio', async () => {
const el = await fixture(`
<lion-radio name="radio" value="male"></lion-radio>
`);
await nextFrame();
expect(el.getAttribute('type')).to.equal('radio');
});
});