Created
May 10, 2019 16:54
-
-
Save achhunna/bd4208b43a6bbb6b38e10d2b438cd234 to your computer and use it in GitHub Desktop.
Existence of DOM elements
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
test('has blah class', () => { | |
expect(wrapper.contains('.blah')).toBe(true); | |
}); | |
// check multiple elements by verifying count | |
test('has blah classes', () => { | |
expect(wrapper.findAll('.blah').length).toBe(10); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment