Created
April 13, 2020 21:50
-
-
Save madmax983/638c303697b918f9f2ee3ec4818c8d84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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