Files
renovate/lib/modules/manager/helmv3/common.spec.ts
Sebastian Poxhofer 05e1271376 test: use expect().resolves instead of awaiting inside expect (#45672)
Enables the vitest/prefer-expect-resolves oxlint rule and applies its
autofix across the spec suite.
2026-09-04 10:40:46 +00:00

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',
);
});
});