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

optimizely / javascript-sdk / 1250
78%

Build:
DEFAULT BRANCH: master
Ran 10 Feb 2020 08:59PM UTC
Jobs 7
Files 60
Run time 8min
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
1250

push

travis-ci

web-flow
chore(notification_center)[OASIS-5764]: Add all unit tests for the notification_center module (#392)

Summary:
- The notification_center module did not have a unit test associated with it.
- This PR addresses that to ensure 100% coverage of this module.

Test plan:
addNotificationListener
- only valid listener types should have listeners registered
- the listenerId should be returned upon successful registration
- cannot register the same callback twice
removeNotificationListener
- should return true if the listener is successfully removed
- should only remove the specified listener using the listenerId
clearAllNotificationListeners
- should remove all listeners of all types
clearNotificationListeners
- should remove only the specified notification type when there are no listeners registered
- should remove only the specified notification type and leave all other notification type listeners still registered
sendNotifications
- checks that each notification type listeners executes the callback with the passed in notification data from the user

Issues
- Addresses OASIS-5764 (https://optimizely.atlassian.net/browse/OASIS-5764)

638 of 703 branches covered (90.75%)

Branch coverage included in aggregate %.

7036 of 7163 relevant lines covered (98.23%)

156.31 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1250.2 10 Feb 2020 08:59PM UTC 0
97.56
Travis Job 1250.2
5 1250.5 10 Feb 2020 09:05PM UTC 0
97.56
Travis Job 1250.5
6 1250.6 10 Feb 2020 09:07PM UTC 0
97.56
Travis Job 1250.6
7 1250.7 10 Feb 2020 09:06PM UTC 0
97.56
Travis Job 1250.7
8 1250.8 10 Feb 2020 09:06PM UTC 0
97.56
Travis Job 1250.8
9 1250.9 10 Feb 2020 09:06PM UTC 0
97.56
Travis Job 1250.9
10 1250.10 10 Feb 2020 09:06PM UTC 0
97.56
Travis Job 1250.10
Source Files on build 1250
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #1250
  • 10ce0033 on github
  • Prev Build on master (#1240)
  • Next Build on master (#1253)
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