renovate/test/manager/index.spec.ts
Sergio Zharinov 7dc04f77fa
feat: Dynamic manager loading from directories (#5287)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-02-04 10:37:24 +01:00

43 lines
1.1 KiB
TypeScript

import * as manager from '../../lib/manager';
describe('manager', () => {
describe('get()', () => {
it('gets something', () => {
expect(manager.get('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('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();
});
});
});