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

Lumieducation / H5P-Nodejs-library / 2a417e4f-c360-4f51-9d80-5ea8e3f567b7

15 Jun 2024 09:28PM CUT coverage: 65.662%. First build
2a417e4f-c360-4f51-9d80-5ea8e3f567b7

Pull #3634

circleci

web-flow
chore(deps): update dependency @types/node to v18.19.34
Pull Request #3634: chore(deps): update dependency @types/node to v18.19.34

6261 of 10849 branches covered (57.71%)

Branch coverage included in aggregate %.

8641 of 11846 relevant lines covered (72.94%)

4597.81 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