Created
September 11, 2022 21:02
-
-
Save jimkeller/ace44e41a522d831e5b965c3c39b28b4 to your computer and use it in GitHub Desktop.
Sample HTML Fixture for Jest Plain HTML Testing
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
export const nested_html = | |
` | |
<div id="test-immediate-children"> | |
<div class="immediate-child"> | |
Immediate Child 1 | |
<div class="descendant-child"> | |
Descendant 1-1 | |
</div> | |
<div class="descendant-child"> | |
Descendant 1-2 | |
</div> | |
</div> | |
<div class="immediate-child"> | |
Immediate Child 2 | |
<div class="descendant-child"> | |
Descendant 2-1 | |
</div> | |
<div class="descendant-child"> | |
Descendant 2-2 | |
</div> | |
</div> | |
</div> | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment