Skip to content
Snippets Groups Projects
Select Git revision
  • 5-rebase-images-in-annot
  • demo_ci_gitlab_pages default
  • demo_gitlab_ci
  • 5-images-in-annotations
  • 5-final-images
  • 5-chpk-images-in-annot
  • tetras-main protected
  • 5-wip-images-in-annot
  • tmp
  • 1-edit-annotations-on-videos
  • 5-old-images-in-annotations
  • old_demo_ci_gitlab_pages
  • images_annotations
  • wip
  • devsetup
  • wip-annot-video-ui
  • wip-annotations-on-videos
  • master
  • v0.4.0_react16
  • wip-debugging-annotations
20 results

README.md

Blame
  • Forked from IIIF / Mirador / Mirador annotations
    Source project has a limited visibility.
    WindowTopMenuButton.test.js 689 B
    import React from 'react';
    import { shallow } from 'enzyme';
    import WindowTopMenuButton from '../../../src/components/WindowTopMenuButton';
    
    describe('WindowTopMenuButton', () => {
      let wrapper;
      beforeEach(() => {
        wrapper = shallow(
          <WindowTopMenuButton classes={{}} windowId="xyz" />,
        ).dive();
      });
    
      it('renders without an error', () => {
        expect(wrapper.find('WithStyles(IconButton)').length).toBe(1);
      });
      it('when clicked, updates the state', () => {
        wrapper.find('WithStyles(IconButton)').simulate('click', { currentTarget: 'x' });
        expect(wrapper.find('Connect(miradorWithPlugins(WithStyles(WindowTopMenu)))').props().anchorEl).toBe('x');
      });
    });