renovate/lib/config/definitions.spec.ts

14 lines
388 B
TypeScript
Raw Normal View History

2020-03-07 10:27:10 +00:00
import { getName } from '../../test/util';
2020-05-01 16:03:48 +00:00
import { getOptions } from './definitions';
2020-03-07 10:27:10 +00:00
jest.mock('../manager', () => ({
getManagers: jest.fn(() => new Map().set('testManager', {})),
2020-03-07 10:27:10 +00:00
}));
describe(getName(), () => {
2020-03-07 10:27:10 +00:00
it('test manager should have no defaultConfig', () => {
const opts = getOptions();
expect(opts.filter((o) => o.name === 'testManager')).toEqual([]);
2020-03-07 10:27:10 +00:00
});
});