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

optimizely / javascript-sdk / 1901 / 9
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2020 12:08AM UTC
Files 1
Run time 0s
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

03 Jun 2020 12:00AM UTC coverage: 14.286% (-82.5%) from 96.768%
BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH

push

travis-ci

web-flow
fix: Stub event dispatcher and mock timers in tests (#497)

Summary

- Several unit tests weren't properly stubbing the default event dispatcher - add these stubs

- The test suite wasn't exiting due to active timers not being cleaned up. Fixed this by mocking setTimeout using sinon.useFakeTimers

- One test for Node default event dispatcher was relying on a real connection error from attempting to request to an invalid domain. Added a nock mock for this to prevent the real request.

Test plan:

Run npm test. Should exit immediately, and not make any outgoing HTTP requests.

Issues:

https://github.com/optimizely/javascript-sdk/issues/487

0 of 2 branches covered (0.0%)

Branch coverage included in aggregate %.

1 of 5 relevant lines covered (20.0%)

0.2 hits per line

Source Files on job 1901.9 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1233
  • Travis Job 1901.9
  • cc6a6b6d on github
  • Prev Job for BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH on master (#1893.3)
  • Next Job for BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH on master (#1905.3)
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