UNPKG

v4web-components

Version:
23 lines (22 loc) 875 B
import { newSpecPage } from '@stencil/core/testing'; import { LabDsAvatarWithExchange } from './lab-ds-avatar-with-exchange'; describe('v4-avatar-with-exchange', () => { it('renders', async () => { const page = await newSpecPage({ components: [LabDsAvatarWithExchange], html: `<lab-ds-avatar-with-exchange size="small" />`, }); expect(page.root).toEqualHtml(` <lab-ds-avatar-with-exchange size="small"> <mock:shadow-root> <div class="avatar-with-exchange"> <lab-ds-avatar size="small"></lab-ds-avatar> <div class="overlay"></div> <lab-ds-icon-not-selectable class="exchange-icon" icon="photo_camera" size="xx-small"></lab-ds-icon-not-selectable> </div> </mock:shadow-root> </lab-ds-avatar> `); }); }); //# sourceMappingURL=lab-ds-avatar-with-exchange.spec.js.map