mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 01:37:24 +00:00
05e1271376
Enables the vitest/prefer-expect-resolves oxlint rule and applies its autofix across the spec suite.
20 lines
627 B
TypeScript
20 lines
627 B
TypeScript
import { generateLoginCmd } from './common.ts';
|
|
import type { RepositoryRule } from './types.ts';
|
|
|
|
describe('modules/manager/helmv3/common', () => {
|
|
it('should generate a login command with username and password', async () => {
|
|
const repositoryRule: RepositoryRule = {
|
|
name: 'test-repo',
|
|
repository: 'example.com/repo',
|
|
hostRule: {
|
|
hostType: 'docker',
|
|
username: 'testuser',
|
|
password: 'testpass',
|
|
},
|
|
};
|
|
await expect(generateLoginCmd(repositoryRule)).resolves.toEqual(
|
|
'helm registry login --username testuser --password testpass example.com',
|
|
);
|
|
});
|
|
});
|