mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 21:48:32 +00:00
b4319928f1
* refactor: strict manager tests * chore: revert changes * Update lib/modules/manager/gradle/extract.spec.ts
20 lines
578 B
TypeScript
20 lines
578 B
TypeScript
import { Fixtures } from '../../../../test/fixtures';
|
|
import { extractPackageFile } from '.';
|
|
|
|
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);
|
|
});
|
|
});
|
|
});
|