Skip to content

Commit

Permalink
[INTERNAL] Adjust locations where transform module is used
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasso85 committed Oct 21, 2019
1 parent 5c47bf4 commit 5329b29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 33 deletions.
29 changes: 0 additions & 29 deletions lib/processors/jsdoc/lib/transform-apijson-for-sdk.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/processors/jsdoc/lib/transformApiJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const cheerio = require("cheerio");
const path = require('path');
const log = (function() {
try {
return require("@ui5/logger").getLogger("builder:processors:jsdoc:transform-apijson-for-sdk");
return require("@ui5/logger").getLogger("builder:processors:jsdoc:transformApiJson");
} catch (error) {
/* eslint-disable no-console */
return {
Expand Down
2 changes: 1 addition & 1 deletion lib/processors/jsdoc/sdkTransformer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const resourceFactory = require("@ui5/fs").resourceFactory;
const transformer = require("./lib/transform-apijson-for-sdk");
const transformer = require("./lib/transformApiJson");

/**
* Transform api.json as created by [jsdocGenerator]{@link module:@ui5/builder.processors.jsdocGenerator}
Expand Down
4 changes: 2 additions & 2 deletions test/lib/processors/jsdoc/sdkTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.afterEach.always((t) => {

test.serial("sdkTransformer", async (t) => {
const transformerStub = sinon.stub().resolves("api.json content");
mock("../../../../lib/processors/jsdoc/lib/transform-apijson-for-sdk", transformerStub);
mock("../../../../lib/processors/jsdoc/lib/transformApiJson", transformerStub);
const createResourceStub = sinon.stub(require("@ui5/fs").resourceFactory, "createResource")
.returns("result resource");

Expand Down Expand Up @@ -51,7 +51,7 @@ test.serial("sdkTransformer", async (t) => {
string: "api.json content"
}, "createResource called with correct arguments");

mock.stop("../../../../lib/processors/jsdoc/lib/transform-apijson-for-sdk");
mock.stop("../../../../lib/processors/jsdoc/lib/transformApiJson");
});

test("sdkTransformer missing parameters", async (t) => {
Expand Down

0 comments on commit 5329b29

Please sign in to comment.