Skip to content
Snippets Groups Projects
Select Git revision
  • 96c9477fcdaf2f13a98a964b81a82b4e586a35a0
  • main default protected
  • 24-everything-from-git
  • 45-create-new-poc-deployment-with-docker
  • 44-add-a-cli-tool
  • improve-deployment
  • 31-backend
  • bash-script-bug-fix
  • upgrades_submodules
  • 24-dependencies-build-nested-watch
  • 24-dependencies-build-using-workspaces
  • 24-dependencies-build
  • wip-all-local
  • 10-annotot
  • 3-annotation-plugin-showing-up
15 results

webpack.config.js

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