Update __tests__/utils.test.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dan Hecker 2025-12-19 09:30:10 -05:00 committed by GitHub
parent 24f18a93cf
commit a272ba362a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -435,7 +435,9 @@ describe('configurePipRepository', () => {
expect(fs.existsSync(configPath)).toBeTruthy();
const content = fs.readFileSync(configPath, 'utf8');
expect(content).toContain('[global]');
expect(content).toContain('index-url = https://testuser:testpass@');
const encodedUsername = encodeURIComponent(username);
const encodedPassword = encodeURIComponent(password);
expect(content).toContain(`index-url = https://${encodedUsername}:${encodedPassword}@`);
expect(content).toContain('nexus.example.com/repository/pypi/simple');
});