mirror of
https://github.com/renovatebot/renovate.git
synced 2025-05-12 23:51:55 +00:00
19 lines
567 B
TypeScript
19 lines
567 B
TypeScript
import { extractPackageFile } from '.';
|
|
import { Fixtures } from '~test/fixtures';
|
|
|
|
const input01Content = Fixtures.get('package-1.js');
|
|
|
|
describe('modules/manager/meteor/extract', () => {
|
|
describe('extractPackageFile()', () => {
|
|
it('returns empty if fails to parse', () => {
|
|
const res = extractPackageFile('blahhhhh:foo:@what\n');
|
|
expect(res).toBeNull();
|
|
});
|
|
|
|
it('returns results', () => {
|
|
const res = extractPackageFile(input01Content);
|
|
expect(res).toMatchSnapshot();
|
|
expect(res?.deps).toHaveLength(6);
|
|
});
|
|
});
|
|
});
|