mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import * as manager from '../../lib/manager';
|
|
import { MANAGER_DOCKERFILE } from '../../lib/constants/managers';
|
|
|
|
describe('manager', () => {
|
|
describe('get()', () => {
|
|
it('gets something', () => {
|
|
expect(
|
|
manager.get(MANAGER_DOCKERFILE, 'extractPackageFile')
|
|
).not.toBeNull();
|
|
});
|
|
});
|
|
describe('getLanguageList()', () => {
|
|
it('gets', () => {
|
|
expect(manager.getLanguageList()).not.toBeNull();
|
|
});
|
|
});
|
|
describe('getManagerList()', () => {
|
|
it('gets', () => {
|
|
expect(manager.getManagerList()).not.toBeNull();
|
|
});
|
|
});
|
|
describe('extractAllPackageFiles()', () => {
|
|
it('returns null', () => {
|
|
expect(
|
|
manager.extractAllPackageFiles(MANAGER_DOCKERFILE, {} as any, [])
|
|
).toBeNull();
|
|
});
|
|
it('returns non-null', () => {
|
|
expect(
|
|
manager.extractAllPackageFiles('npm', {} as any, [])
|
|
).not.toBeNull();
|
|
});
|
|
});
|
|
|
|
describe('extractPackageFile()', () => {
|
|
it('returns null', () => {
|
|
expect(manager.extractPackageFile('unknown', null)).toBeNull();
|
|
});
|
|
});
|
|
|
|
describe('getPackageUpdates', () => {
|
|
it('returns null', () => {
|
|
expect(manager.getPackageUpdates('unknown', null)).toBeNull();
|
|
});
|
|
});
|
|
});
|