import { html, fixture, expect } from '@open-wc/testing';
import type { MonoStrongComp } from '../src/MonoStrongComp';
import '../src/MonoStrongComp';
describe('MonoStrongComp', () => {
it('handle as, size, family, weight, tracking, tone, inline props and accept a default slot', async () => {
const el = await fixture(
html`Hey there`,
);
expect(el.textContent).to.equal('Hey there');
expect(el.inline).to.equal(true);
});
it('inline should be by default false', async () => {
const el = await fixture(
html`Hey there`,
);
expect(el.inline).to.equal(false);
});
it('should spreads other attributes', async () => {
const el = await fixture(
html``,
);
expect(el.shadowRoot?.firstElementChild?.getAttribute('fake')).to.equal(
'test',
);
});
it('passes the a11y audit', async () => {
const el = await fixture(html``);
await expect(el).shadowDom.to.be.accessible();
});
});