mirror of
https://github.com/renovatebot/renovate.git
synced 2025-05-14 16:32:26 +00:00
16 lines
513 B
TypeScript
16 lines
513 B
TypeScript
import { extractPackageFile } from '.';
|
|
import { Fixtures } from '~test/fixtures';
|
|
|
|
describe('modules/manager/cloudbuild/extract', () => {
|
|
describe('extractPackageFile()', () => {
|
|
it('returns null for empty', () => {
|
|
expect(extractPackageFile('nothing here')).toBeNull();
|
|
});
|
|
|
|
it('extracts multiple image lines', () => {
|
|
const res = extractPackageFile(Fixtures.get('cloudbuild.yml'));
|
|
expect(res?.deps).toMatchSnapshot();
|
|
expect(res?.deps).toHaveLength(3);
|
|
});
|
|
});
|
|
});
|