Reorganizing components into directories
This commit is contained in:
parent
21146549f7
commit
ad6583d5dc
@ -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(
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { Header } from './Header';
|
||||
import { Header } from './index';
|
||||
|
||||
const env = { ...process.env };
|
||||
|
@ -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(
|
@ -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>
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import PageTemplate from './PageTemplate';
|
||||
import PageTemplate from './index';
|
||||
|
||||
const env = { ...process.env };
|
||||
|
@ -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() {
|
@ -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' };
|
@ -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 {
|
@ -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' };
|
Loading…
Reference in New Issue
Block a user