Skip to content
Snippets Groups Projects
Select Git revision
  • acdb957d8ebf6ba784f72cd545af40def6973791
  • master default protected
  • dependabot/go_modules/golang.org/x/oauth2-0.27.0
  • dependabot/go_modules/golang.org/x/net-0.38.0
  • dependabot/pip/ui/requests-2.32.4
  • bug-upgrade
  • gh-pages
  • patroni-4-integration
  • remove-zappr
  • ignore-auto-upgrade
  • arm-pooler
  • update-go-and-deps
  • pluralsh-liveness-probe
  • silenium-dev-master
  • bump-v1.9.1
  • enable-query-logging
  • bump-v1.7.1
  • resize-mixed-mode
  • instance-annotation
  • bump-v1.8.2
  • clone-bucket-prefix
  • v1.14.0
  • v1.13.0
  • v1.12.2
  • v1.12.1
  • v1.12.0
  • v1.11.0
  • v1.10.1
  • v1.10.0
  • v1.9.0
  • v1.8.2
  • v1.8.1
  • v1.8.0
  • v1.7.1
  • v1.7.0
  • v1.6.3
  • v1.6.2
  • v1.6.1
  • v1.6.0
  • v1.5.0
  • v1.4.0
41 results

pod_test.go

Blame
  • errors.spec.ts 843 B
    import { codeBlock } from 'common-tags';
    import { bulkChangesDisallowed } from './error';
    
    const errorMsg = codeBlock`
      To https://github.com/the-org/st-mono.git
      !\t:refs/renovate/branches/renovate/foo\t[remote failure] (remote failed to report status)
      !\t:refs/renovate/branches/renovate/bar\t[remote failure] (remote failed to report status)
      Done
      Pushing to https://github.com/foo/bar.git
      POST git-receive-pack (1234 bytes)
      remote: Repository policies do not allow pushes that update more than 2 branches or tags.
      error: failed to push some refs to 'https://github.com/foo/bar.git'
    `;
    
    describe('util/git/errors', () => {
      describe('bulkChangesDisallowed', () => {
        it('should match the expected error', () => {
          const err = new Error(errorMsg);
          expect(bulkChangesDisallowed(err)).toBe(true);
        });
      });
    });