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

LouisBrunner / dnd-multi-backend / 6855842705

13 Nov 2023 09:17PM UTC coverage: 98.498%. Remained the same
6855842705

push

github

web-flow
chore(deps-dev): bump @testing-library/react from 14.0.0 to 14.1.0 (#224)

Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 14.0.0 to 14.1.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v14.0.0...v14.1.0)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

63 of 67 branches covered (0.0%)

Branch coverage included in aggregate %.

265 of 266 relevant lines covered (99.62%)

37.11 hits per line

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

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

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

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

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

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

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