renovate/lib/manager/nvm/extract.spec.ts
2020-02-05 01:14:31 +01:00

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