"lib/modules/platform/bitbucket-server/index.ts" did not exist on "36f8d1df0e07073642768c50e34ae35eabbcddb7"
Select Git revision
flag_failure_debug.go
configured.spec.ts 741 B
import { RenovateConfig, getConfig, getName } from '../../../test/util';
import { checkIfConfigured } from './configured';
let config: RenovateConfig;
beforeEach(() => {
jest.resetAllMocks();
config = getConfig();
});
describe(getName(), () => {
describe('checkIfConfigured()', () => {
it('returns', () => {
expect(() => checkIfConfigured(config)).not.toThrow();
});
it('throws if disabled', () => {
config.enabled = false;
expect(() => checkIfConfigured(config)).toThrow();
});
it('throws if unconfigured fork', () => {
config.enabled = true;
config.isFork = true;
config.renovateJsonPresent = false;
expect(() => checkIfConfigured(config)).toThrow();
});
});
});