mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
c93154bd24
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
23 lines
695 B
TypeScript
23 lines
695 B
TypeScript
import { getTerragruntDependencyType } from './util';
|
|
|
|
describe('modules/manager/terragrunt/util', () => {
|
|
describe('getTerragruntDependencyType()', () => {
|
|
it('returns terraform', () => {
|
|
expect(getTerragruntDependencyType('terraform')).toBe('terraform');
|
|
});
|
|
|
|
it('returns unknown', () => {
|
|
expect(getTerragruntDependencyType('unknown')).toBe('unknown');
|
|
});
|
|
|
|
it('returns unknown on empty string', () => {
|
|
expect(getTerragruntDependencyType('')).toBe('unknown');
|
|
});
|
|
|
|
it('returns unknown on string with random chars', () => {
|
|
expect(getTerragruntDependencyType('sdfsgdsfadfhfghfhgdfsdf')).toBe(
|
|
'unknown'
|
|
);
|
|
});
|
|
});
|
|
});
|