Skip to content

Commit

Permalink
rename processor
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Jan 16, 2024
1 parent cda94e1 commit f3bd5eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/middleware/serveResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function createMiddleware({resources, middlewareUtil}) {

if (rManifest.test(resourcePath)) {
// Special handling for manifest.json file by adding additional content to the served manifest.json
const {default: manifestTransformer} = await import("@ui5/builder/processors/manifestTransformer");
await manifestTransformer({
const {default: manifestEnricher} = await import("@ui5/builder/processors/manifestEnricher");
await manifestEnricher({
resources: [resource],
fs: fsInterface(resources.all)
});
Expand Down
8 changes: 4 additions & 4 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("manifestTransformer: request manifest.json with auto generated supported locales", async (t) => {
test.serial("manifestEnricher: request manifest.json with auto generated supported locales", async (t) => {
t.plan(4);

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

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

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

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

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

0 comments on commit f3bd5eb

Please sign in to comment.