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', () => ({
|
2020-04-06 17:38:20 +00:00
|
|
|
getManagers: jest.fn(() => new Map().set('testManager', {})),
|
2020-03-07 10:27:10 +00:00
|
|
|
}));
|
|
|
|
|
2021-04-26 14:15:03 +00:00
|
|
|
describe(getName(), () => {
|
2020-03-07 10:27:10 +00:00
|
|
|
it('test manager should have no defaultConfig', () => {
|
|
|
|
const opts = getOptions();
|
2020-04-12 16:09:36 +00:00
|
|
|
expect(opts.filter((o) => o.name === 'testManager')).toEqual([]);
|
2020-03-07 10:27:10 +00:00
|
|
|
});
|
|
|
|
});
|