• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

reactjs / react-modal / 713 / 1
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 12 Dec 2017 11:35PM UTC
Files 10
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Dec 2017 11:32PM UTC coverage: 86.232% (-0.2%) from 86.441%
713.1

push

travis-ci

diasbruno
[fixed] check if focusLaterElements is empty before popping

Without a check to see if the focusLaterElements array is empty, we
end up calling `pop()` on an empty array—resulting in an undefined
value—and inadvertently jump to the `catch` block when we attempt to
call `focus()` on `undefined`.

This ensures that if there are no existing elements to return focus to
once our modal is closed (this happens often in a testing env), we do
not throw a TypeError by accident.

230 of 355 branches covered (64.79%)

357 of 414 relevant lines covered (86.23%)

27.42 hits per line

Source Files on job 713.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 713
  • Travis Job 713.1
  • eb5ea074 on github
  • Prev Job for on master (#709.1)
  • Next Job for on master (#714.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc