mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
ecdcd9df4f
Rewrite of dependency extraction, particularly for npm. Paves way for easier addition of new package managers. Closes #1882
27 lines
741 B
JavaScript
27 lines
741 B
JavaScript
const manager = require('../../lib/manager');
|
|
|
|
describe('manager', () => {
|
|
describe('get()', () => {
|
|
it('gets something', () => {
|
|
expect(manager.get('docker', 'extractDependencies')).not.toBe(null);
|
|
});
|
|
});
|
|
describe('getLanguageList()', () => {
|
|
it('gets', () => {
|
|
expect(manager.getLanguageList()).not.toBe(null);
|
|
});
|
|
});
|
|
describe('getManagerList()', () => {
|
|
it('gets', () => {
|
|
expect(manager.getManagerList()).not.toBe(null);
|
|
});
|
|
});
|
|
describe('postExtract()', () => {
|
|
it('returns null', () => {
|
|
expect(manager.postExtract('docker', [])).toBe(null);
|
|
});
|
|
it('returns postExtract', () => {
|
|
expect(manager.postExtract('npm', [])).not.toBe(null);
|
|
});
|
|
});
|
|
});
|