Skip to content
Snippets Groups Projects
Select Git revision
  • c228db5d10f396db25aa5ab0698c884cbdd30ddf
  • master default protected
2 results

cell.js

Blame
  • config.spec.ts 630 B
    import { GlobalConfig } from '../../config/global';
    import { simpleGitConfig } from './config';
    
    describe('util/git/config', () => {
      beforeEach(() => {
        GlobalConfig.reset();
      });
    
      it('uses "close" events, ignores "exit" events from child processes', () => {
        expect(simpleGitConfig()).toEqual({
          completion: { onClose: true, onExit: false },
        });
      });
    
      it('uses timeout value from GlobalConfig', () => {
        GlobalConfig.set({ gitTimeout: 50000 });
        expect(simpleGitConfig()).toEqual({
          completion: { onClose: true, onExit: false },
          timeout: {
            block: 50000,
          },
        });
      });
    });