renovate/test/manager/index.spec.js

28 lines
782 B
JavaScript
Raw Normal View History

const manager = require('../../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();
});
});
2018-11-05 06:47:44 +00:00
describe('extractAllPackageFiles()', () => {
it('returns null', () => {
expect(manager.extractAllPackageFiles('dockerfile', [])).toBeNull();
});
2018-11-05 06:47:44 +00:00
it('returns non-null', () => {
expect(manager.extractAllPackageFiles('npm', {}, [])).not.toBeNull();
});
});
});