mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
13 lines
363 B
JavaScript
13 lines
363 B
JavaScript
import { fixture, expect, html } from '../index.js';
|
|
import '../demo/my-element.js';
|
|
|
|
describe('my-element', () => {
|
|
it('renders correctly', async () => {
|
|
const element = await fixture(html` <my-element message="hello world!"></my-element> `);
|
|
// @ts-ignore
|
|
await element.updateComplete;
|
|
|
|
expect(element).shadowDom.to.equalSnapshot();
|
|
});
|
|
});
|