mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
26 lines
968 B
TypeScript
26 lines
968 B
TypeScript
import { TerragruntDependencyTypes, getTerragruntDependencyType } from './util';
|
|
|
|
describe('lib/manager/terragrunt/extract', () => {
|
|
describe('getTerragruntDependencyType()', () => {
|
|
it('returns TerragruntDependencyTypes.terragrunt', () => {
|
|
expect(getTerragruntDependencyType('terraform')).toBe(
|
|
TerragruntDependencyTypes.terragrunt
|
|
);
|
|
});
|
|
it('returns TerragruntDependencyTypes.unknown', () => {
|
|
expect(getTerragruntDependencyType('unknown')).toBe(
|
|
TerragruntDependencyTypes.unknown
|
|
);
|
|
});
|
|
it('returns TerragruntDependencyTypes.unknown on empty string', () => {
|
|
expect(getTerragruntDependencyType('')).toBe(
|
|
TerragruntDependencyTypes.unknown
|
|
);
|
|
});
|
|
it('returns TerragruntDependencyTypes.unknown on string with random chars', () => {
|
|
expect(getTerragruntDependencyType('sdfsgdsfadfhfghfhgdfsdf')).toBe(
|
|
TerragruntDependencyTypes.unknown
|
|
);
|
|
});
|
|
});
|
|
});
|