Skip to content
Snippets Groups Projects
Select Git revision
  • a3b4d259d78f8dba34748659ed09ad5cf6657ab3
  • master default protected
  • 133-fail2ban-page
  • reorganisation
  • 16-maintenace-service
  • 11-fail2ban
  • 6-monit-update
  • 7-dolibarr-fail2ban
  • 6-surveillance-interne-des-serveur
  • test-glpi
  • 2-migrate-to-phpfpm
  • jessie
  • github
13 results

configure_base_tools.sh

Blame
  • WindowSideBarPanel.test.js 946 B
    import React from 'react';
    import { shallow } from 'enzyme';
    import WindowSideBarPanel from '../../../src/components/WindowSideBarPanel';
    import WindowSideBarInfoPanel from '../../../src/containers/WindowSideBarInfoPanel';
    
    describe('WindowSideBarPanel', () => {
      let wrapper;
    
      describe('when the sideBarPanel is set to "info"', () => {
        beforeEach(() => {
          wrapper = shallow(<WindowSideBarPanel windowId="abc123" sideBarPanel="info" />);
        });
    
        it('renders the WindowSideBarInfoPanel', () => {
          expect(wrapper.find(WindowSideBarInfoPanel).length).toBe(1);
        });
      });
    
      describe('when the sideBarPanel is set to "closed" (or any other unknown value)', () => {
        beforeEach(() => {
          wrapper = shallow(<WindowSideBarPanel windowId="abc123" sideBarPanel="closed" />);
        });
    
        it('does not render any panel component', () => {
          expect(wrapper.find(WindowSideBarInfoPanel).length).toBe(0);
        });
      });
    });