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

reactstrap / reactstrap / 2901
93%

Build:
DEFAULT BRANCH: master
Ran 26 Jun 2020 05:09PM UTC
Jobs 3
Files 97
Run time 1min
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
2901

push

travis-ci

iamandrewluca
feat(Button): onClick of inner button returns value of props.onClick.

This change makes Button implementation return the value of props.onClick in its own onClick function.

Rationale for the change: in my own use case, I have some onClick function call fetch methods. These onClick methods return the promise returned by fetch. For normal application use, this does not do anything. In unit tests however, this allows the unit-test to trigger the click and await on the handling of the response before doing assertions (using fetch-mock...). After switching from react-bootstrap to reactstrap, those tests do not work anymore since this onClick implementation does not pass the promise along.

This change is backwards compatible if you assume nobody relies on onClick returning undefined. Please let me know if I can improve this change in any way.

974 of 1138 branches covered (85.59%)

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

1593 of 1706 relevant lines covered (93.38%)

171.61 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2901.2 (GITHUB_TOKEN=[secure]) 26 Jun 2020 05:09PM UTC 0
93.38
Travis Job 2901.2
3 2901.3 (GITHUB_TOKEN=[secure]) 26 Jun 2020 05:09PM UTC 0
93.38
Travis Job 2901.3
4 2901.4 (GITHUB_TOKEN=[secure]) 26 Jun 2020 05:09PM UTC 0
93.38
Travis Job 2901.4
Source Files on build 2901
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2901
  • f09cdd6c on github
  • Prev Build on master (#2892)
  • Next Build on master (#2942)
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