Skip to content

Commit

Permalink
[INTERNAL] rename to manifestEnhancer
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Apr 17, 2024
1 parent 279e4f7 commit b1a688c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/middleware/serveResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function createMiddleware({resources, middlewareUtil}) {

if (rManifest.test(resourcePath) && resource.getProject()) {
// Special handling for manifest.json file by adding additional content to the served manifest.json
const {default: manifestEnricher} = await import("@ui5/builder/processors/manifestEnricher");
await manifestEnricher({
const {default: manifestEnhancer} = await import("@ui5/builder/processors/manifestEnhancer");
await manifestEnhancer({
resources: [resource],
// Ensure that only files within the manifest's project are accessible
// Using the "runtime" style to match the style used by the UI5 server
Expand Down
10 changes: 5 additions & 5 deletions test/lib/server/middleware/serveResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ test.serial("Check if utf8 characters are correctly processed in version replace
});
});

test.serial("manifestEnricher: request manifest.json with auto generated supported locales", async (t) => {
test.serial("manifestEnhancer: request manifest.json with auto generated supported locales", async (t) => {
t.plan(4);

const readerWriter = resourceFactory.createAdapter({virBasePath: "/"});
Expand Down Expand Up @@ -630,7 +630,7 @@ test.serial("manifestEnricher: request manifest.json with auto generated support
t.is(setHeaderSpy.getCall(0).lastArg, "application/json; charset=UTF-8");
});

test.serial("manifestEnricher: request manifest.json with auto generated supported locales " +
test.serial("manifestEnhancer: request manifest.json with auto generated supported locales " +
"(non-root level manifest.json)",
async (t) => {
t.plan(4);
Expand Down Expand Up @@ -733,7 +733,7 @@ async (t) => {
t.is(setHeaderSpy.getCall(0).lastArg, "application/json; charset=UTF-8");
});

test.serial("manifestEnricher: manifest.json with manual defined supported locales", async (t) => {
test.serial("manifestEnhancer: manifest.json with manual defined supported locales", async (t) => {
t.plan(4);

const readerWriter = resourceFactory.createAdapter({virBasePath: "/"});
Expand Down Expand Up @@ -833,7 +833,7 @@ test.serial("manifestEnricher: manifest.json with manual defined supported local
t.is(setHeaderSpy.getCall(0).lastArg, "application/json; charset=UTF-8");
});

test.serial("manifestEnricher: no generation of supported locales " +
test.serial("manifestEnhancer: no generation of supported locales " +
"if manifest.json version is below 1.21.0",
async (t) => {
t.plan(4);
Expand Down Expand Up @@ -923,7 +923,7 @@ async (t) => {
t.is(setHeaderSpy.getCall(0).lastArg, "application/json; charset=UTF-8");
});

test.serial("manifestEnricher: no generation of supported locales " +
test.serial("manifestEnhancer: no generation of supported locales " +
"if manifest.json version is not defined",
async (t) => {
t.plan(4);
Expand Down

0 comments on commit b1a688c

Please sign in to comment.