lion/packages/listbox/test/lion-options.test.js
Konstantinos Norgias e17f7bdfa6 feat: upgrade to lit2
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2021-05-20 12:21:43 +02:00

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');
});
});