mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
15 lines
454 B
TypeScript
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();
|
|
});
|
|
});
|
|
});
|