0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/modules/manager/custom/index.spec.ts
RahulGautamSingh 79556f4ecb
refactor(enabled-managers): implement custom.<customMgrName> syntax (#24079)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-11-08 13:13:26 +00:00

16 lines
492 B
TypeScript

import * as customManager from '.';
describe('modules/manager/custom/index', () => {
it('getCustomManagerList', () => {
expect(customManager.customManagerList).toBeArrayOf(expect.toBeString());
});
describe('isCustomManager()', () => {
it('works', () => {
expect(customManager.isCustomManager('npm')).toBe(false);
expect(customManager.isCustomManager('regex')).toBe(true);
expect(customManager.isCustomManager('custom.regex')).toBe(false);
});
});
});