2017-10-25 04:00:07 +00:00
|
|
|
const manager = require('../../lib/manager');
|
2017-10-25 04:48:08 +00:00
|
|
|
|
2017-10-25 04:00:07 +00:00
|
|
|
describe('manager', () => {
|
2018-05-09 06:03:59 +00:00
|
|
|
describe('get()', () => {
|
|
|
|
it('gets something', () => {
|
2019-04-02 14:59:27 +00:00
|
|
|
expect(manager.get('dockerfile', 'extractPackageFile')).not.toBeNull();
|
2018-04-30 14:13:32 +00:00
|
|
|
});
|
2017-10-25 04:00:07 +00:00
|
|
|
});
|
2018-05-09 06:03:59 +00:00
|
|
|
describe('getLanguageList()', () => {
|
|
|
|
it('gets', () => {
|
2019-04-02 14:59:27 +00:00
|
|
|
expect(manager.getLanguageList()).not.toBeNull();
|
2017-10-25 04:48:08 +00:00
|
|
|
});
|
2018-05-09 06:03:59 +00:00
|
|
|
});
|
|
|
|
describe('getManagerList()', () => {
|
|
|
|
it('gets', () => {
|
2019-04-02 14:59:27 +00:00
|
|
|
expect(manager.getManagerList()).not.toBeNull();
|
2017-10-25 04:48:08 +00:00
|
|
|
});
|
2018-05-09 06:03:59 +00:00
|
|
|
});
|
2018-11-05 06:47:44 +00:00
|
|
|
describe('extractAllPackageFiles()', () => {
|
2018-05-09 06:03:59 +00:00
|
|
|
it('returns null', () => {
|
2019-04-02 14:59:27 +00:00
|
|
|
expect(manager.extractAllPackageFiles('dockerfile', [])).toBeNull();
|
2017-10-25 04:48:08 +00:00
|
|
|
});
|
2018-11-05 06:47:44 +00:00
|
|
|
it('returns non-null', () => {
|
2019-04-23 14:46:37 +00:00
|
|
|
expect(manager.extractAllPackageFiles('npm', {}, [])).not.toBeNull();
|
2017-10-25 04:48:08 +00:00
|
|
|
});
|
|
|
|
});
|
2017-10-25 04:00:07 +00:00
|
|
|
});
|