@bulmil/core
Version:

21 lines (20 loc) • 501 B
JavaScript
/*!
* Bulmil - MIT License
*/
import { newSpecPage } from "@stencil/core/testing";
import { Image } from "../image";
it('Should render properly', async () => {
const page = await newSpecPage({
components: [Image],
html: `<bm-image size="is-32x32">
<img src="" />
</bm-image>`,
});
expect(page.root).toEqualHtml(`
<bm-image size="is-32x32">
<figure class="image is-32x32">
<img src="" />
</figure>
</bm-image>
`);
});