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

palcarazm / bs-darkmode-toggle / 24188015865
99%
v1: 98%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/docs/version-updates-8b302c2185
DEFAULT BRANCH: v1
Ran 09 Apr 2026 11:35AM UTC
Jobs 2
Files 17
Run time 1min
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

09 Apr 2026 11:34AM UTC coverage: 98.846% (+0.07%) from 98.773%
24188015865

push

github

web-flow
feat: implement destroy API for complete instance cleanup (#87)

Add destroy() method that completely removes the plugin instance:
- Remove global document event listener for cross-instance sync
- Destroy DOM layout (button or toggle) and remove control elements
- Delete _bsDarkmodeToggle reference from host element
- Add _destroyed flag and ensureNotDestroyed() guard method
- All public methods throw error when called on destroyed instance

Implementation details:
- ButtonLayout: remove click listener and button element
- ToggleLayout: call bootstrapToggle("destroy") then remove input
- DomManager delegates destroy() to layout implementation
- jQuery and ECMAScript wrappers expose DESTROY method
- E2E tests verify container is emptied but color scheme preserved
- Unit tests cover idempotency, error throwing, and cleanup chain

Implements #64

217 of 221 branches covered (98.19%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 4 files covered. (100.0%)

297 of 299 relevant lines covered (99.33%)

109.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 coverage-report-24.x - 24188015865.1 09 Apr 2026 11:35AM UTC 34
99.04
GitHub Action Run
2 coverage-report-22.x - 24188015865.2 09 Apr 2026 11:35AM UTC 34
99.04
GitHub Action Run
Source Files on build 24188015865
  • Tree
  • List 17
  • Changed 14
  • Source Changed 5
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24188015865
  • 7a0d54e8 on github
  • Prev Build on develop/1.1.0 (#24150039204)
  • Next Build on develop/1.1.0 (#24192584542)
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