Skip to content

Commit 4127696

Browse files
author
Brian Vaughn
committed
Moved tests into __tests__ subdirectory
1 parent b914dd4 commit 4127696

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ErrorBoundary.test.js renamed to src/__tests__/ErrorBoundary.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {mount} from 'enzyme';
22
import React from 'react';
33

4-
import ErrorBoundary, {withErrorBoundary} from './ErrorBoundary';
5-
import ErrorBoundaryFallbackComponent from './ErrorBoundaryFallbackComponent';
4+
import ErrorBoundary, {withErrorBoundary} from '../ErrorBoundary';
5+
import ErrorBoundaryFallbackComponent from '../ErrorBoundaryFallbackComponent';
66

77
describe('ErrorBoundary', () => {
88
let consoleErrorSpy;

src/ErrorBoundaryFallbackComponent.test.js renamed to src/__tests__/ErrorBoundaryFallbackComponent.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import {shallow} from 'enzyme';
33

4-
import ErrorBoundaryFallbackComponent from './ErrorBoundaryFallbackComponent';
4+
import ErrorBoundaryFallbackComponent from '../ErrorBoundaryFallbackComponent';
55

66
describe('ErrorBoundaryFallbackComponent', () => {
77
let mockError;

0 commit comments

Comments
 (0)