Skip to content

Instantly share code, notes, and snippets.

@JakeGinnivan
Created August 4, 2019 03:22
Show Gist options
  • Select an option

  • Save JakeGinnivan/f2ec47852dc1f390920a87080982cf5f to your computer and use it in GitHub Desktop.

Select an option

Save JakeGinnivan/f2ec47852dc1f390920a87080982cf5f to your computer and use it in GitHub Desktop.
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