Skip to content

Instantly share code, notes, and snippets.

@madmax983
Created April 13, 2020 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madmax983/638c303697b918f9f2ee3ec4818c8d84 to your computer and use it in GitHub Desktop.
Save madmax983/638c303697b918f9f2ee3ec4818c8d84 to your computer and use it in GitHub Desktop.
import { createElement } from "lwc";
import tdd from "c/tdd";
describe("c-tdd", () => {
afterEach(() => {
// The jsdom instance is shared across test cases in a single file so reset the DOM
while (document.body.firstChild) {
document.body.removeChild(document.body.firstChild);
}
});
it("renders", () => {
// Create element
const element = createElement("c-tdd", {
is: tdd
});
document.body.appendChild(element);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment