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

reactjs / react-modal / 713
85%

Build:
DEFAULT BRANCH: master
Ran 12 Dec 2017 11:35PM UTC
Jobs 1
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

pending completion
713

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%)

3 of 3 new or added lines in 1 file covered. (100.0%)

357 of 414 relevant lines covered (86.23%)

27.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
src/helpers/focusManager.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/helpers/focusManager.js
Jobs
ID Job ID Ran Files Coverage
1 713.1 12 Dec 2017 11:35PM UTC 0
86.23
Travis Job 713.1
Source Files on build 713
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #713
  • eb5ea074 on github
  • Prev Build on master (#709)
  • Next Build on master (#714)
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