renovate/lib/modules/manager/terragrunt/util.spec.ts
RahulGautamSingh c93154bd24
refactor: enums to unions (#18747)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-11-05 09:12:03 +00:00

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