Reorganizing components into directories

This commit is contained in:
Jeff Avallone 2018-02-12 20:05:47 -05:00
parent 21146549f7
commit ad6583d5dc
18 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import { Footer } from './Footer';
import { Footer } from './index';
test('Footer rendering', () => {
const component = shallow(

View File

@ -1,7 +1,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import { Header } from './Header';
import { Header } from './index';
const env = { ...process.env };

View File

@ -1,7 +1,7 @@
import React from 'react';
import { shallow, render } from 'enzyme';
import Message from './Message';
import Message from './index';
test('Message rendering', () => {
const component = shallow(

View File

@ -2,7 +2,7 @@ import React from 'react';
import ReactDOMServer from 'react-dom/server';
import PropTypes from 'prop-types';
import pkg from '../../package.json';
import pkg from '../../../package.json';
const PageTemplate = ({ title, children }) => (
<html>

View File

@ -1,7 +1,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import PageTemplate from './PageTemplate';
import PageTemplate from './index';
const env = { ...process.env };

View File

@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import RavenError from './RavenError';
import RavenError from '../RavenError';
class RavenBoundary extends React.Component {
constructor() {

View File

@ -1,7 +1,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import RavenBoundary from './RavenBoundary';
import RavenBoundary from './index';
const testError = { error: 'test error' };
const testDetails = { details: 'test details' };

View File

@ -1,9 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import { translate, Trans } from 'react-i18next';
import { Raven } from '../sentry';
import { Raven } from '../../sentry';
import Message from './Message';
import Message from '../Message';
import AlertIcon from 'feather-icons/dist/icons/alert-octagon.svg';
class RavenError extends React.Component {

View File

@ -1,10 +1,10 @@
import React from 'react';
import { shallow } from 'enzyme';
jest.mock('../sentry');
jest.mock('../../sentry');
import { RavenError } from './RavenError';
import { Raven } from '../sentry';
import { RavenError } from './index';
import { Raven } from '../../sentry';
const testError = { error: 'test error' };
const testDetails = { details: 'test details' };