Skip to content

Commit

Permalink
[INTERNAL] Apply feedback from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed May 4, 2023
1 parent 00a6b09 commit 9f0072b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/graph/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function graphFromPackageDependencies({
* <code>cwd</code> or an absolute path. In both case, platform-specific path segment separators must be used.
* @param {string} [options.versionOverride] Framework version to use instead of the one defined in the root project
* @param {module:@ui5/project/ui5Framework/maven/CacheMode} [options.cacheMode]
* Cache mode to use when consuming SNAPSHOT versions
* Cache mode to use when consuming SNAPSHOT versions of a framework
* @param {string} [options.resolveFrameworkDependencies=true]
* Whether framework dependencies should be added to the graph
* @returns {Promise<@ui5/project/graph/ProjectGraph>} Promise resolving to a Project Graph instance
Expand Down Expand Up @@ -148,7 +148,7 @@ export async function graphFromStaticFile({
* <code>cwd</code> or an absolute path. In both case, platform-specific path segment separators must be used.
* @param {string} [options.versionOverride] Framework version to use instead of the one defined in the root project
* @param {module:@ui5/project/ui5Framework/maven/CacheMode} [options.cacheMode]
* Cache mode to use when consuming SNAPSHOT versions
* Cache mode to use when consuming SNAPSHOT versions of a framework
* @param {string} [options.resolveFrameworkDependencies=true]
* Whether framework dependencies should be added to the graph
* @returns {Promise<@ui5/project/graph/ProjectGraph>} Promise resolving to a Project Graph instance
Expand Down
2 changes: 1 addition & 1 deletion lib/graph/helpers/ui5Framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default {
* @param {string} [options.versionOverride] Framework version to use instead of the root projects framework
* version
* @param {module:@ui5/project/ui5Framework/maven/CacheMode} [options.cacheMode]
* Cache mode to use when consuming SNAPSHOT versions
* Cache mode to use when consuming SNAPSHOT versions of a framework
* @param {@ui5/project/graph/Workspace} [options.workspace]
* Optional workspace instance to use for overriding node resolutions
* @returns {Promise<@ui5/project/graph/ProjectGraph>}
Expand Down
3 changes: 0 additions & 3 deletions test/lib/graph/helpers/ui5Framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ test.serial("enrichProjectGraph: without framework configuration", async (t) =>

test.serial("enrichProjectGraph SNAPSHOT", async (t) => {
const {sinon, ui5Framework, utils, Sapui5MavenSnapshotResolverInstallStub} = t.context;
process.env.UI5_MAVEN_SNAPSHOT_ENDPOINT_URL = "__url__";

const dependencyTree = {
id: "test1",
Expand Down Expand Up @@ -266,8 +265,6 @@ test.serial("enrichProjectGraph SNAPSHOT", async (t) => {
t.deepEqual(callbackCalls, [
"application.a"
], "Traversed graph in correct order");

delete process.env.UI5_MAVEN_SNAPSHOT_ENDPOINT_URL;
});

test.serial("enrichProjectGraph: With versionOverride", async (t) => {
Expand Down

0 comments on commit 9f0072b

Please sign in to comment.