(libraryName)
| 385 | |
| 386 | test("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"] |
nothing calls this directly
no test coverage detected