Skip to content
Snippets Groups Projects
Select Git revision
  • 8a8311d931b9949ae9fdff72c96abb60019825da
  • master default protected
  • gh-pages
  • dependabot/npm_and_yarn/nock-14.0.6
  • dependabot/npm_and_yarn/react-19.1.0
  • dependabot/npm_and_yarn/react-dom-19.1.0
  • server-2025-02-01-6100669a
  • server-2024-11-01-87cba042
  • server-2024-10-01-6875b7c8
  • dependabot/npm_and_yarn/path-to-regexp-8.2.0
  • server-2024-09-01-3d52575c
  • daily-tests-gha2
  • daily-tests-gha
  • server-2023-12-01-92d8fb8e
  • server-2023-11-01-a80c93fd
  • server-2023-10-01-31096085
  • coc-v2
  • server-2023-09-01-8edc3810
  • server-2023-08-01-75858a03
  • server-2023-07-01-02183d8d
  • test-9317
  • server-2025-07-01
  • 5.0.2
  • 5.0.1
  • 5.0.0
  • server-2025-06-01
  • server-2025-05-01
  • server-2025-04-03
  • server-2025-03-02
  • server-2025-03-01
  • server-2025-02-02
  • server-2025-01-01
  • server-2024-12-01
  • server-2024-11-02
  • 4.1.0
  • server-2024-09-25
  • server-2024-09-02
  • server-2024-08-01
  • server-2024-07-01
  • 4.0.0
  • server-2024-06-01
41 results

gitlab-pipeline-status.tester.js

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);
        });
      });
    });