renovate/lib/manager/terraform-version/extract.spec.ts
2021-04-13 12:07:57 +02:00

15 lines
454 B
TypeScript

import { getName } from '../../../test/util';
import { extractPackageFile } from './extract';
describe(getName(__filename), () => {
describe('extractPackageFile()', () => {
it('returns a result', () => {
const res = extractPackageFile('12.0.0\n');
expect(res.deps).toMatchSnapshot();
});
it('skips non ranges', () => {
const res = extractPackageFile('latest');
expect(res.deps).toMatchSnapshot();
});
});
});