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

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