Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Feichtner <[email protected]>
lpriyasivakumar and Churro authored Feb 5, 2024
1 parent 3de2805 commit 09fc354
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/modules/manager/maven/extract.spec.ts
Original file line number Diff line number Diff line change
@@ -176,24 +176,24 @@ describe('modules/manager/maven/extract', () => {
});

it('extract registries from a settings file that uses updated schema', () => {
const settingsUpatedContent = codeBlock`
const settingsUpdatedContent = codeBlock`
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
<mirrors>
<mirror>
<id>Test-Internal-repository</id>
<name>Proxy Repository Manager</name>
<url>https:/proxy-repo.com/artifactory/apache-maven</url>
<url>https://proxy-repo.com/artifactory/apache-maven</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<profiles/>
<activeProfiles/>
</settings>
`;
const res = extractRegistries(settingsUpatedContent);
const res = extractRegistries(settingsUpdatedContent);
expect(res).toStrictEqual([
'https:/proxy-repo.com/artifactory/apache-maven',
'https://proxy-repo.com/artifactory/apache-maven',
]);
});
});

0 comments on commit 09fc354

Please sign in to comment.