Updating import paths in tests
This commit is contained in:
parent
91ee254477
commit
3931cee8af
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
|
||||||
import App from './index';
|
import App from 'components/App';
|
||||||
|
|
||||||
test('Message rendering', () => {
|
test('Message rendering', () => {
|
||||||
const component = shallow(
|
const component = shallow(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
|
||||||
import { Footer } from './index';
|
import { Footer } from 'components/Footer';
|
||||||
|
|
||||||
test('Footer rendering', () => {
|
test('Footer rendering', () => {
|
||||||
const component = shallow(
|
const component = shallow(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
|
||||||
import { Header } from './index';
|
import { Header } from 'components/Header';
|
||||||
|
|
||||||
const env = { ...process.env };
|
const env = { ...process.env };
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow, render } from 'enzyme';
|
import { shallow, render } from 'enzyme';
|
||||||
|
|
||||||
import Message from './index';
|
import Message from 'components/Message';
|
||||||
|
|
||||||
test('Message rendering', () => {
|
test('Message rendering', () => {
|
||||||
const component = shallow(
|
const component = shallow(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
|
||||||
import RavenBoundary from './index';
|
import RavenBoundary from 'components/RavenBoundary';
|
||||||
|
|
||||||
const testError = { error: 'test error' };
|
const testError = { error: 'test error' };
|
||||||
const testDetails = { details: 'test details' };
|
const testDetails = { details: 'test details' };
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
|
||||||
jest.mock('../../sentry');
|
jest.mock('sentry');
|
||||||
|
|
||||||
import { RavenError } from './index';
|
import { RavenError } from 'components/RavenError';
|
||||||
import { Raven } from '../../sentry';
|
import { Raven } from 'sentry';
|
||||||
|
|
||||||
const testError = { error: 'test error' };
|
const testError = { error: 'test error' };
|
||||||
const testDetails = { details: 'test details' };
|
const testDetails = { details: 'test details' };
|
||||||
|
Loading…
Reference in New Issue
Block a user