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

LouisBrunner / dnd-multi-backend / 3665211237

pending completion
3665211237

push

github

Louis Brunner
fix: remove Node 14 builds (need npm 7 and above) and improve npm caching

284 of 376 branches covered (75.53%)

Branch coverage included in aggregate %.

692 of 710 relevant lines covered (97.46%)

12.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.38
/packages/dnd-multi-backend/src/PreviewListImpl.ts
1
import {MultiBackendSwitcher, PreviewList, PreviewListener} from './types'
4✔
2

4✔
3
export class PreviewListImpl implements PreviewList {
4✔
4
  /*private*/ #previews: PreviewListener[]
4✔
5

4✔
6
  constructor() {
4✔
7
    this.#previews = []
4✔
8
  }
9

4✔
10
  register = (preview: PreviewListener): void => {
4!
11
    this.#previews.push(preview)
4✔
12
  }
4!
13

33✔
14
  unregister = (preview: PreviewListener): void => {
15
    let index
4✔
16
    while ((index = this.#previews.indexOf(preview)) !== -1) {
17
      this.#previews.splice(index, 1)
4✔
18
    }
4✔
19
  }
61!
20

×
21
  backendChanged = (backend: MultiBackendSwitcher): void => {
22
    for (const preview of this.#previews) {
4✔
23
      preview.backendChanged(backend)
28✔
24
    }
28!
25
  }
26
}
4✔
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

© 2025 Coveralls, Inc