0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/modules/manager/cake/index.spec.ts
2025-03-13 17:52:09 +00:00

22 lines
845 B
TypeScript

import { extractPackageFile } from '.';
import { Fixtures } from '~test/fixtures';
describe('modules/manager/cake/index', () => {
it('extracts', () => {
expect(extractPackageFile(Fixtures.get('build.cake'))).toMatchObject({
deps: [
{ depName: 'Foo.Foo', currentValue: undefined },
{ depName: 'Bim.Bim', currentValue: '6.6.6' },
{ depName: 'Bar.Bar', registryUrls: ['https://example.com/'] },
{ depName: 'Cake.Git', registryUrls: ['https://example.com/feed/v3/'] },
{
depName: 'Cake.MinVer',
registryUrls: ['https://example.com/feed/v3/index.json'],
},
{ depName: 'Baz.Baz', skipReason: 'unsupported-url' },
{ depName: 'Cake.7zip', currentValue: '1.0.3' },
{ depName: 'Cake.asciidoctorj', currentValue: '1.0.0' },
],
});
});
});