Skip to content
Snippets Groups Projects
Select Git revision
  • f367057b34093f752664bfac1d0c54a9cda231fa
  • master default protected
2 results

send_maintenance_mail.sh

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