Skip to content

Instantly share code, notes, and snippets.

@MonsieurMan
Last active August 10, 2018 08:51
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 MonsieurMan/48df366e926473604fddb21cbbd63c53 to your computer and use it in GitHub Desktop.
Save MonsieurMan/48df366e926473604fddb21cbbd63c53 to your computer and use it in GitHub Desktop.
beforeEach(async () => {
testWindow = new TestWindow();
element = await testWindow.load({
components: [Adder],
// Let's say we want to props `a` and `b`
html: '<adder a="2" b="2"></adder>',
});
});
it('adds up the two values and display it in the text content', () => {
expect(element.textContent).toEqual('4');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment