17 lines
596 B
JavaScript
17 lines
596 B
JavaScript
import { expect, fixture } from '@open-wc/testing';
|
|
import { html } from 'lit/static-html.js';
|
|
// eslint-disable-next-line no-unused-vars
|
|
import { LionOptions } from '../src/LionOptions.js';
|
|
import '@lion/listbox/define-options';
|
|
|
|
describe('lion-options', () => {
|
|
it('should have role="listbox"', async () => {
|
|
const registrationTargetEl = document.createElement('div');
|
|
const el = /** @type {LionOptions} */ (
|
|
await fixture(html`
|
|
<lion-options .registrationTarget=${registrationTargetEl}></lion-options>
|
|
`)
|
|
);
|
|
expect(el.role).to.equal('listbox');
|
|
});
|
|
});
|