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

palcarazm / bs-darkmode-toggle / 24149212465 / 1
97%
v1: 98%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/minor-and-patch-updates-b47236feb0
DEFAULT BRANCH: v1
Ran 08 Apr 2026 05:29PM UTC
Files 34
Run time 1s
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

08 Apr 2026 05:27PM UTC coverage: 98.976% (+0.05%) from 98.925%
24149212465.1

push

github

web-flow
feat: implement cross-instance synchronization for multiple toggles (#85)

* feat: implement cross-instance synchronization for multiple toggles

Add event-based coordination so multiple toggle instances on the same page
share a single global state. When one toggle changes the theme, all other
toggles automatically update their visual state.

- Add OVERRIDE action to StateReducer for external state updates
- Each instance listens for darkmode:change events on document
- Sync only when ALL root elements are affected by the event
- Update DOM without retriggering storage or events
- Add unit tests for root sharing, partial overlap, and state matching
- Add manual test case for multi-control verification in test app

Implements #60

* fix: remove this unused import of 'TEST_CONSTANTS'

Unnecessary imports should be removed javascript:S1128

219 of 223 branches covered (98.21%)

Branch coverage included in aggregate %.

554 of 558 relevant lines covered (99.28%)

26.95 hits per line

Source Files on job coverage-report-24.x - 24149212465.1
  • Tree
  • List 34
  • Changed 13
  • Source Changed 3
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24149212465
  • e5f3887e on github
  • Prev Job for on develop/1.1.0 (#24141672558.1)
  • Next Job for on develop/1.1.0 (#24150039204.1)
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