Skip to content

Commit c221a5f

Browse files
committed
reorganize test folder
1 parent 7bac7ec commit c221a5f

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

test/utils/applyMiddleware.spec.js renamed to test/applyMiddleware.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import expect from 'expect'
2-
import { createStore, applyMiddleware } from '../../src/index'
3-
import * as reducers from '../helpers/reducers'
4-
import { addTodo, addTodoAsync, addTodoIfEmpty } from '../helpers/actionCreators'
5-
import { thunk } from '../helpers/middleware'
2+
import { createStore, applyMiddleware } from '../src/index'
3+
import * as reducers from './helpers/reducers'
4+
import { addTodo, addTodoAsync, addTodoIfEmpty } from './helpers/actionCreators'
5+
import { thunk } from './helpers/middleware'
66

77
describe('applyMiddleware', () => {
88
it('wraps dispatch method with middleware once', () => {
@@ -69,7 +69,7 @@ describe('applyMiddleware', () => {
6969
{
7070
id: 1,
7171
text: 'Hello'
72-
},
72+
},
7373
{
7474
id: 2,
7575
text: 'World'
@@ -81,11 +81,11 @@ describe('applyMiddleware', () => {
8181
{
8282
id: 1,
8383
text: 'Hello'
84-
},
84+
},
8585
{
8686
id: 2,
8787
text: 'World'
88-
},
88+
},
8989
{
9090
id: 3,
9191
text: 'Maybe'

test/utils/bindActionCreators.spec.js renamed to test/bindActionCreators.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import expect from 'expect'
2-
import { bindActionCreators, createStore } from '../../src'
3-
import { todos } from '../helpers/reducers'
4-
import * as actionCreators from '../helpers/actionCreators'
2+
import { bindActionCreators, createStore } from '../src'
3+
import { todos } from './helpers/reducers'
4+
import * as actionCreators from './helpers/actionCreators'
55

66
describe('bindActionCreators', () => {
77
let store

test/utils/combineReducers.spec.js renamed to test/combineReducers.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import expect from 'expect'
2-
import { combineReducers } from '../../src'
3-
import createStore, { ActionTypes } from '../../src/createStore'
2+
import { combineReducers } from '../src'
3+
import createStore, { ActionTypes } from '../src/createStore'
44

55
describe('Utils', () => {
66
describe('combineReducers', () => {

test/utils/compose.spec.js renamed to test/compose.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import expect from 'expect'
2-
import { compose } from '../../src'
2+
import { compose } from '../src'
33

44
describe('Utils', () => {
55
describe('compose', () => {

0 commit comments

Comments
 (0)