mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
18 lines
545 B
TypeScript
18 lines
545 B
TypeScript
import { extractPackageFile } from './extract';
|
|
|
|
describe('lib/manager/nvm/extract', () => {
|
|
describe('extractPackageFile()', () => {
|
|
it('returns a result', () => {
|
|
const res = extractPackageFile('8.4.0\n');
|
|
expect(res.deps).toMatchSnapshot();
|
|
});
|
|
it('supports ranges', () => {
|
|
const res = extractPackageFile('8.4\n');
|
|
expect(res.deps).toMatchSnapshot();
|
|
});
|
|
it('skips non ranges', () => {
|
|
const res = extractPackageFile('latestn');
|
|
expect(res.deps).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|