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

optimizely / javascript-sdk / 2366 / 6
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2020 06:20PM UTC
Files 65
Run time 21s
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

06 Oct 2020 05:38PM UTC coverage: 96.631% (+0.003%) from 96.628%
BROWSER_STACK_USERNAME=[secure] BROWSER_STACK_ACCESS_KEY=[secure] SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH

push

travis-ci

web-flow
fix(project config manager): Don't log an error when not initialized with datafile (#589)

Summary:

Fixes a regression introduced during refactoring for datafile accessor - any time the datafile property of the object passed to createInstance is missing or falsy, the logger will output (for example):

[OPTIMIZELY] - ERROR 2020-10-05T23:38:15.224Z CONFIG_VALIDATOR: No datafile specified. Cannot start optimizely

Passing in an sdkKey, but no datafile, is valid and supported when calling createInstance, but this message leads the user to believe otherwise. In this situation, nothing is actually wrong, but the message says "Cannot start optimizely".

To fix, in ProjectConfigManager __initialize, when config.datafile is falsy, we do not call __handleNewDatafile, avoiding the code path that eventually would log the error message.

Test plan:

- Added new unit test
- Manually tested

804 of 918 branches covered (87.58%)

Branch coverage included in aggregate %.

7542 of 7719 relevant lines covered (97.71%)

58.36 hits per line

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