renovate/test/manager/index.spec.js
Rhys Arkins ecdcd9df4f
feat: refactor dependency extraction (#1912)
Rewrite of dependency extraction, particularly for npm. Paves way for easier addition of new package managers.

Closes #1882
2018-05-09 08:03:59 +02:00

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);
});
});
});