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

Lumieducation / H5P-Nodejs-library / 5e9b2eec-c321-4bf9-b90a-393ff73d2337

18 Feb 2024 06:28PM CUT coverage: 65.655%. Remained the same
5e9b2eec-c321-4bf9-b90a-393ff73d2337

Pull #2994

circleci

web-flow
fix(deps): update dependency i18next to v23
Pull Request #2994: fix(deps): update dependency i18next to v23

6260 of 10849 branches covered (57.7%)

Branch coverage included in aggregate %.

8645 of 11853 relevant lines covered (72.94%)

4639.46 hits per line

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

9.52
/packages/h5p-server/src/helpers/DependencyChecker.ts
1
import { ILibraryName } from '../types';
2
import LibraryName from '../LibraryName';
26✔
3

4
/**
5
 * Checks if the metadata contains any dependencies on the given library.
6
 * @param metadata
7
 * @param library
8
 */
9
export function hasDependencyOn(
26✔
10
    metadata: {
11
        dynamicDependencies?: ILibraryName[];
12
        editorDependencies?: ILibraryName[];
13
        preloadedDependencies?: ILibraryName[];
14
    },
15
    library: ILibraryName
16
): boolean {
17
    return (
×
18
        metadata.preloadedDependencies?.some((dep) =>
×
19
            LibraryName.equal(dep, library)
×
20
        ) ||
21
        metadata.editorDependencies?.some((dep) =>
×
22
            LibraryName.equal(dep, library)
×
23
        ) ||
24
        metadata.dynamicDependencies?.some((dep) =>
×
25
            LibraryName.equal(dep, library)
×
26
        )
27
    );
28
}
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