Skip to content
Snippets Groups Projects
Select Git revision
  • f053db435a0621d84993c7e87870710aa38b614c
  • main default
  • 35-cgu
  • 34-peertube-support
  • 27-add-autoplay-to-iframe
  • 33-bug-on-youtube-embed-urls
  • RC-Rekall-v1.1-fix_lpo
  • tuleap-140-go-back-to-my-capsules-page-when-i-m-on-capsule-preview-page
  • RC-Rekall-v1.2-fix10
  • RC-Rekall-v1.2-fix9
  • RC-Rekall-v1.2-fix8
  • RC-Rekall-v1.2-fix7
  • RC-Rekall-v1.2-fix6
  • RC-Rekall-v1.2-fix5
  • RC-Rekall-v1.2-fix4
  • RC-Rekall-v1.2-fix3
  • RC-Rekall-v1.2-fix2
  • RC-Rekall-v1.2-fix1
  • RC-Rekall-v1.1-fix-3
  • RC-Rekall-v1.1-fix-2
  • RC-Rekall-v1.1-fix-1
  • RC-Rekall-v1.1-delivered
  • preprod20220209-1535
23 results

phpstan-tests.neon

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