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

share / sharedb / 1389
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 37s
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
1389

Pull #359

travis-ci

web-flow
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`.
Pull Request #359: Fix `Presence._callEachOrEmit`

1405 of 1630 branches covered (86.2%)

17 of 17 new or added lines in 3 files covered. (100.0%)

3073 of 3157 relevant lines covered (97.34%)

536.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1389.1 03 Apr 2020 04:53PM UTC 0
97.34
Travis Job 1389.1
2 1389.2 03 Apr 2020 04:52PM UTC 0
97.34
Travis Job 1389.2
3 1389.3 03 Apr 2020 04:53PM UTC 0
97.34
Travis Job 1389.3
Source Files on build 1389
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1389
  • Pull Request #359
  • PR Base - master (#1383)
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