Skip to content
Snippets Groups Projects
Select Git revision
  • 5660bfb2d1fda707f36c0990d795a2f57de57bdb
  • master default protected
  • bugfix/error-on-not-found-network
  • 5.0.2
  • 5.0.1
  • 5.0.0
  • 4.1.2
  • 4.1.1
  • 4.1.0
  • 4.0.0
  • 3.13.0
  • 3.12.2
  • 3.12.1
  • 3.12.0
  • 3.11.0
  • 3.10.1
  • 3.10.0
  • 3.9.2
  • 3.9.0
  • 3.8.1
  • 3.8.0
  • 3.7.1
  • 3.7.0
23 results

flag_failure_debug.go

Blame
  • 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();
        });
      });
    });