0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/manager/cdnurl/extract.spec.ts
Rhys Arkins 143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00

26 lines
977 B
TypeScript

import { Fixtures } from '../../../../test/fixtures';
import { extractPackageFile } from '.';
describe('modules/manager/cdnurl/extract', () => {
it('extractPackageFile', () => {
expect(extractPackageFile(Fixtures.get(`sample.txt`))).toMatchSnapshot({
deps: [
{
depName: 'prop-types',
currentValue: '15.6.1',
packageName: 'prop-types/prop-types.min.js',
},
{ depName: 'react', currentValue: '16.3.2' },
{ depName: 'react-dom', currentValue: '16.3.2' },
{ depName: 'react-transition-group', currentValue: '2.2.1' },
{ depName: 'popper.js', currentValue: '1.14.3' },
{ depName: 'react-popper', currentValue: '0.10.4' },
{ depName: 'reactstrap', currentValue: '7.1.0' },
{ depName: 'react-router', currentValue: '4.3.1' },
{ depName: 'react-markdown', currentValue: '4.0.6' },
{ depName: 'axios', currentValue: '0.18.0' },
],
});
});
});