mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 16:46:25 +00:00
14 lines
428 B
TypeScript
14 lines
428 B
TypeScript
import { extractPackageFile } from './extract';
|
|
|
|
describe('lib/manager/terraform-version/extract', () => {
|
|
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();
|
|
});
|
|
});
|
|
});
|