Skip to content
Snippets Groups Projects
Select Git revision
  • 5baf81a70ab8cf04cb1e215dbe44ce8166e7d1f2
  • main default protected
  • lihiz_preflight
  • release/prepare-v0.10.7
  • dependabot/github_actions/golangci/golangci-lint-action-7
  • release/prepare-v0.9.1
  • gh-pages
  • aquadev
  • v0.11.1
  • v0.11.0
  • v0.10.7
  • v0.10.6
  • v0.10.5
  • v0.10.4
  • v0.10.3
  • v0.10.2
  • v0.10.1
  • v0.10.0
  • v0.9.4
  • v0.9.3
  • v0.9.2
  • v0.9.1
  • v0.9.0
  • v0.8.0
  • v0.7.3
  • v0.7.2
  • v0.7.1
  • v0.7.0
28 results

util_test.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();
        });
      });
    });