Created
August 4, 2019 03:22
-
-
Save JakeGinnivan/f2ec47852dc1f390920a87080982cf5f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const wrapper = fixture.mountUrl('/business') | |
| await fixture.processEvents() | |
| const allLimas = wrapper.update().find(Lima) | |
| expect(allLimas.length).toBeGreaterThan(0) | |
| const bullsNBears = allLimas.filterWhere(limas => { | |
| const props = limas.props() | |
| if (!props.sectionHeader) { | |
| return false | |
| } | |
| return props.sectionHeader.sponsor === 'bullsnbears' | |
| }) | |
| expect(bullsNBears.length).toBe(1) | |
| expect(bullsNBears.find(SponsoredLabel).length).toBe(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment