UNPKG

@haxtheweb/create

Version:

CLI for all things HAX the web

22 lines (18 loc) 472 B
import { html, fixture, expect } from '@open-wc/testing'; import "../<%= name %>.js"; describe("<%= className %> test", () => { let element; beforeEach(async () => { element = await fixture(html` <<%= name %> title="title" ></<%= name %>> `); }); it("basic will it blend", async () => { expect(element).to.exist; }); it("passes the a11y audit", async () => { await expect(element).shadowDom.to.be.accessible(); }); });