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

palcarazm / bs-darkmode-toggle / 24962585779 / 2
97%
v1: 98%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/minor-and-patch-updates-779e3f8761
DEFAULT BRANCH: v1
Ran 26 Apr 2026 05:25PM UTC
Files 32
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

26 Apr 2026 05:23PM UTC coverage: 97.833% (-0.2%) from 98.007%
24962585779.2

push

github

palcarazm
refactor(events): migrate to typed Component.emit() and EventFactory

Replace manual event system (EventManager, DarkModeToggleEvent) with Component's
native emit() and typed event map. EventManager is replaced by EventFactory,
which now only creates event payloads and objects, not dispatching. Events now
use proper typing via ExtendableEventMap, eliminating unsafe casts. Adds runtime
validation for external events to prevent crashes from malformed payloads.

- Remove EventManager.ts and DarkModeToggleEvent.ts
- Add EventFactory.ts with static methods for event creation
- Update DarkModeToggle to use DarkModeToggleEventMap generic
- Change trigger() to dispatch legacy event first for consistent order
- Add malformed event test to cover validation branch

291 of 307 branches covered (94.79%)

Branch coverage included in aggregate %.

612 of 616 relevant lines covered (99.35%)

31.3 hits per line

Source Files on job coverage-report-22.x - 24962585779.2
  • Tree
  • List 32
  • Changed 14
  • Source Changed 2
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24962585779
  • a4bc2754 on github
  • Prev Job for on develop/1.1.0 (#24925975369.2)
  • Next Job for on develop/1.1.0 (#24964220243.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