Last active
August 10, 2018 08:51
-
-
Save MonsieurMan/48df366e926473604fddb21cbbd63c53 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
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