0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/modules/manager/runtime-version/extract.spec.ts
Adam Setch c14e30a676
feat(manager): runtime version (#29745)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2024-06-27 00:25:42 +00:00

22 lines
544 B
TypeScript

import { extractPackageFile } from '.';
describe('modules/manager/runtime-version/extract', () => {
describe('extractPackageFile()', () => {
it('returns a result - python', () => {
const res = extractPackageFile('python-3.12.4');
expect(res?.deps).toEqual([
{
depName: 'python',
currentValue: '3.12.4',
datasource: 'docker',
},
]);
});
it('returns no result', () => {
const res = extractPackageFile('3.12.4');
expect(res).toBeNull();
});
});
});