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

optimizely / javascript-sdk / 1901
78%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2020 12:03AM UTC
Jobs 7
Files 63
Run time 5min
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
1901

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

681 of 778 branches covered (87.53%)

Branch coverage included in aggregate %.

6849 of 7009 relevant lines covered (97.72%)

107.45 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1901.3 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 03 Jun 2020 12:03AM UTC 0
96.7
Travis Job 1901.3
6 1901.6 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 03 Jun 2020 12:07AM UTC 0
96.7
Travis Job 1901.6
7 1901.7 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 03 Jun 2020 12:08AM UTC 0
14.29
Travis Job 1901.7
8 1901.8 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 03 Jun 2020 12:08AM UTC 0
14.29
Travis Job 1901.8
9 1901.9 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 03 Jun 2020 12:08AM UTC 0
14.29
Travis Job 1901.9
10 1901.10 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 03 Jun 2020 12:08AM UTC 0
14.29
Travis Job 1901.10
11 1901.11 (BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH) 03 Jun 2020 12:08AM UTC 0
14.29
Travis Job 1901.11
Source Files on build 1901
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1901
  • cc6a6b6d on github
  • Prev Build on master (#1893)
  • Next Build on master (#1905)
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