Skip to content

Commit

Permalink
moves unit tests in __tests__ to src
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-johnson committed Dec 14, 2018
1 parent 6f64b44 commit 4484f22
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';

import * as actions from '../../../src/actions/index';
import ActionTypes from '../../../src/action-types';
import * as actions from '../../actions/index';
import ActionTypes from '../../action-types';

const middlewares = [thunk];
const mockStore = configureMockStore(middlewares);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { shallow } from 'enzyme';
import Display from '../../../src/components/Display';
import ManifestMetadata from '../../../src/components/ManifestMetadata';
import fixture from '../../fixtures/2.json';
import Display from '../../components/Display';
import ManifestMetadata from '../../components/ManifestMetadata';
import fixture from '../fixtures/2.json';

describe('Display', () => {
it('renders without an error', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import { store } from '../../../src/store';
import ManifestListItem from '../../../src/components/ManifestListItem';
import { store } from '../../store';
import ManifestListItem from '../../components/ManifestListItem';

describe('ManifestListItem', () => {
it('renders without an error', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { shallow } from 'enzyme';
import { actions, store } from '../../../src/store';
import ManifestMetadata from '../../../src/components/ManifestMetadata';
import fixture from '../../fixtures/2.json';
import { actions, store } from '../../store';
import ManifestMetadata from '../../components/ManifestMetadata';
import fixture from '../fixtures/2.json';

describe('ManifestMetadata', () => {
let wrapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { mount, shallow } from 'enzyme';
import { actions, store } from '../../../src/store';
import Window from '../../../src/components/Window';
import fixture from '../../fixtures/24.json';
import { actions, store } from '../../store';
import Window from '../../components/Window';
import fixture from '../fixtures/24.json';

describe('Window', () => {
let wrapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { shallow } from 'enzyme';
import { actions, store } from '../../../src/store';
import WindowTopBar from '../../../src/components/WindowTopBar';
import fixture from '../../fixtures/24.json';
import { actions, store } from '../../store';
import WindowTopBar from '../../components/WindowTopBar';
import fixture from '../fixtures/24.json';

describe('Window', () => {
let wrapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { shallow } from 'enzyme';
import { actions, store } from '../../../src/store';
import Workspace from '../../../src/components/Workspace';
import fixture from '../../fixtures/2.json';
import { actions, store } from '../../store';
import Workspace from '../../components/Workspace';
import fixture from '../fixtures/2.json';

describe('Workspace', () => {
let wrapper;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reducer from '../../../src/reducers/config';
import ActionTypes from '../../../src/action-types';
import reducer from '../../reducers/config';
import ActionTypes from '../../action-types';

describe('config reducer', () => {
describe('SET_CONFIG', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reducer from '../../../src/reducers/manifests';
import ActionTypes from '../../../src/action-types';
import reducer from '../../reducers/manifests';
import ActionTypes from '../../action-types';

describe('manifests reducer', () => {
it('should handle REQUEST_MANIFEST', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reducer from '../../../src/reducers/windows';
import ActionTypes from '../../../src/action-types';
import reducer from '../../reducers/windows';
import ActionTypes from '../../action-types';

describe('windows reducer', () => {
it('should handle ADD_WINDOW', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reducer from '../../../src/reducers/workspace';
import ActionTypes from '../../../src/action-types';
import reducer from '../../reducers/workspace';
import ActionTypes from '../../action-types';

describe('workspace reducer', () => {
it('should handle FOCUS_WINDOW', () => {
Expand Down

0 comments on commit 4484f22

Please sign in to comment.