Skip to content
Snippets Groups Projects
Select Git revision
  • 452dc918a4a60a31f07a2487326f8f37cc1a1eaf
  • annotation-on-video default protected
  • demo_ci
  • 3-upstream-01022023
  • master
  • gh3538-captions
  • 16-adapt-for-images-annot
  • 15-api-for-annotations-on-video
  • 15-annotations-on-videos
  • video_for_annotations
  • wip-1-annotations-on-videos
  • 9-videoviewer-tests
  • 9_wip_videotests
  • 6-fix-tests-and-ci
  • _fix_ci
  • wip-webpack-from-git
16 results

setupJest.js

Blame
  • App.test.js 754 B
    import React from 'react';
    import { shallow } from 'enzyme';
    import App from '../../../src/components/App';
    
    describe('App', () => {
      it('renders without an error', () => {
        const wrapper = shallow(
          <App
            manifests={[]}
            workspace={{}}
            config={{ theme: 'light' }}
          />,
        );
        expect(wrapper.find('div.mirador-app').length).toBe(1);
      });
    
      describe('FullScreen', () => {
        it('is enabled by the workspace.fullscreen state', () => {
          const wrapper = shallow(
            <App
              manifests={[]}
              workspace={{ isFullscreenEnabled: true }}
              config={{ theme: 'light' }}
            />,
          );
          expect(wrapper.find('FullScreen').first().prop('enabled')).toEqual(true);
        });
      });
    });