Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix shell.test.js (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mechaffin authored Oct 2, 2018
1 parent ce32dd2 commit 46bcd14
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/components/mocks/mockApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Provider } from 'react-redux';
import { MemoryRouter as Router } from 'react-router-dom';
import i18n from 'i18next';
import { I18nextProvider } from 'react-i18next';
import configureStore from 'store/configureStore';
import { configureStore } from 'store/configureStore';

// Initialize internationalization for testing
i18n
Expand Down
25 changes: 0 additions & 25 deletions src/components/shell/shell.container.js

This file was deleted.

23 changes: 15 additions & 8 deletions src/components/shell/shell.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,24 @@ import React from 'react';
import { mount } from 'enzyme';
import 'polyfills';

import ShellContainer from 'components/shell/shell.container';
import MockApp from 'components/mocks/mockApp';
import Shell from 'components/shell/shell';

describe('Shell integration test', () => {
let wrapper;
it('Render Shell component', () => {
wrapper = mount(
<MockApp>
<ShellContainer />
</MockApp>

const fakeProps = {
theme: 'dark',
deviceGroupFlyoutIsOpen: () => { },
registerRouteEvent: () => { },
logout: () => { },
t: () => { },
history : {
listen : () => {}
}
};

const wrapper = mount(
<Shell {...fakeProps} />
);
});

});

0 comments on commit 46bcd14

Please sign in to comment.