MCPcopy Create free account
hub / github.com/SAP/ui5-project / testLegacyLibrary

Function testLegacyLibrary

test/lib/graph/Module.js:387–404  ·  view source on GitHub ↗
(libraryName)

Source from the content-addressed store, hash-verified

385
386test("Legacy patches are applied", async (t) => {
387 async function testLegacyLibrary(libraryName) {
388 const ui5Module = new Module({
389 id: "legacy-theme-library.e.id",
390 version: "1.0.0",
391 modulePath: themeLibraryEPath,
392 configuration: {
393 specVersion: "2.6", // should not matter
394 type: "library", // legacy config for theme-libraries
395 metadata: {
396 name: libraryName
397 }
398 }
399 });
400 const {project, extensions} = await ui5Module.getSpecifications();
401 t.is(project.getName(), libraryName, "Used name from config object");
402 t.is(project.getType(), "theme-library", "Project type got patched correctly");
403 t.is(extensions.length, 0, "Should return no extensions");
404 }
405
406 await Promise.all(
407 ["themelib_sap_fiori_3", "themelib_sap_bluecrystal", "themelib_sap_belize"]

Callers

nothing calls this directly

Calls 3

getSpecificationsMethod · 0.95
getNameMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected