addresses PR issues

This commit is contained in:
Alex Corey 2019-04-15 13:31:44 -04:00
parent 178d519f6e
commit 2daf202e52
2 changed files with 0 additions and 14 deletions

View File

@ -1,15 +1,9 @@
import React from 'react';
import { mount } from 'enzyme';
<<<<<<< HEAD
import { MemoryRouter } from 'react-router-dom'; import { MemoryRouter } from 'react-router-dom';
import { I18nProvider } from '@lingui/react'; import { I18nProvider } from '@lingui/react';
import Organization from '../../../../../src/pages/Organizations/screens/Organization/Organization'; import Organization, { _Organization } from '../../../../../src/pages/Organizations/screens/Organization/Organization';
=======
import { MemoryRouter } from 'react-router-dom';
import { I18nProvider } from '@lingui/react';
import Organization, { _Organization } from '../../../../../src/pages/Organizations/screens/Organization/Organization';
>>>>>>> addresses PR issues
describe('<OrganizationView />', () => {
test('initially renders succesfully', () => {

View File

@ -71,14 +71,11 @@ class Organization extends Component {
setBreadcrumb(data);
this.setState({ organization: data, loading: false });
} catch (error) {
<<<<<<< HEAD
handleHttpError(error) || this.setState({ error: true, loading: false });
=======
this.setState({ error: true });
} finally {
this.setState({ loading: false });
this.checkLocation();
>>>>>>> addresses PR issues
}
}
@ -226,10 +223,5 @@ class Organization extends Component {
);
}
}
<<<<<<< HEAD
export default withNetwork(withRouter(Organization));
=======
export { Organization as _Organization };
export default withRouter(Organization);
>>>>>>> addresses PR issues