v4web-components
Version:
Stencil Component Starter
36 lines (35 loc) • 1.2 kB
JavaScript
import { newSpecPage } from '@stencil/core/testing';
import { LabDsIconSelectable } from './lab-ds-icon-selectable';
describe('v4-button', () => {
it('renders', async () => {
const page = await newSpecPage({
components: [LabDsIconSelectable],
html: `<lab-ds-icon-selectable size="small" icon="person"/>`,
});
expect(page.root).toEqualHtml(`
<lab-ds-icon-selectable size="small" icon="person">
<mock:shadow-root>
<span class="material-symbols-outlined small v4-icon-selectable notranslate">
person
</span>
</mock:shadow-root>
</lab-ds-icon-selectable>
`);
});
it('renders with default values', async () => {
const page = await newSpecPage({
components: [LabDsIconSelectable],
html: `<lab-ds-icon-selectable icon="person"/>`,
});
expect(page.root).toEqualHtml(`
<lab-ds-icon-selectable icon="person">
<mock:shadow-root>
<span class="material-symbols-outlined medium v4-icon-selectable notranslate">
person
</span>
</mock:shadow-root>
</lab-ds-icon-selectable>
`);
});
});
//# sourceMappingURL=lab-ds-icon-selectable.spec.js.map