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

share / sharedb / 1388
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6
DEFAULT BRANCH: master
Ran 03 Apr 2020 04:52PM UTC
Jobs 3
Files 35
Run time 38s
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
1388

push

travis-ci

Alec Gibson
Fix `Presence._callEachOrEmit`

At the moment, there's a bug where we:

  1. Start disconnected
  2. Submit a presence subscribe request with **no callback**
  3. Connect
  4. The presence then subscribes and calls each callback, but doesn't
     check whether the callback is truthy, which throws

We could check callbacks when we first assign them to the internal map,
but it's quite nice for debugging to see an `undefined` callback
attached to a `seq`.

Therefore, we should handle callbacks not existing when actually
calling them, which `Doc` already does.

This change moves the `Doc` `callEach` method into `utils`, where we can
also use it in `Presence`.

1405 of 1630 branches covered (86.2%)

3073 of 3157 relevant lines covered (97.34%)

536.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1388.1 03 Apr 2020 04:52PM UTC 0
97.34
Travis Job 1388.1
2 1388.2 03 Apr 2020 04:52PM UTC 0
97.34
Travis Job 1388.2
3 1388.3 03 Apr 2020 04:52PM UTC 0
97.34
Travis Job 1388.3
Source Files on build 1388
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1388
  • 4e95f2f4 on github
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