Updating import paths in tests

This commit is contained in:
Jeff Avallone 2018-02-13 20:18:26 -05:00
parent 91ee254477
commit 3931cee8af
6 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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