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

optimizely / javascript-sdk / 365 / 4
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 20 Aug 2018 10:25PM UTC
Files 44
Run time 5s
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

20 Aug 2018 10:24PM UTC coverage: 97.11%. Remained the same
365.4

push

travis-ci

web-flow
fix(build): Resume UMD bundle build, and restore docs (#152)

## Summary
- Restore the `build-browser-umd` npm script, which produces dist/optimizely.browser.umd.min.js
- Change the UMD lib name `optimizelyClient` -> `optimizelySdk`, since the `createInstance` client factory function may be one of several exports of the SDK, in the future.
- (not a visible change) Change Markdown indentation of some bull points, to please my Markdown editor [Typora](https://typora.io/)

This undoes one bit of #135. I hadn't realized that this asset _was_ documented, and does have some uses, like faster/easier prototyping in a browser.

## Test plan
I made a foo.html with
```html
<html>
<head>
  <script src="./dist/optimizely.browser.umd.min.js"></script>
  <script>
    console.log('trying sdk');
    window.optimizelySdk
    console.log('trying client');
    window.optimizelyClient
    console.log('trying client');
    window.optimizelyClient
  </script>
</head>
</html>
```
and it still works:

![screen shot 2018-08-20 at 2 59 47 pm](https://user-images.githubusercontent.com/20175438/44369024-b9d4b580-a489-11e8-9e2b-c8159917b68e.png)

408 of 448 branches covered (91.07%)

Branch coverage included in aggregate %.

3961 of 4051 relevant lines covered (97.78%)

14.66 hits per line

Source Files on job 365.4
  • 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 210
  • Travis Job 365.4
  • b1d6891f on github
  • Prev Job for on master (#361.5)
  • Next Job for on master (#369.4)
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

© 2025 Coveralls, Inc