Skip to content

Commit 766cd5f

Browse files
committed
Ensure we use the same module instance for action types in tests.
1 parent 2b90f97 commit 766cd5f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import bindActionCreators from './bindActionCreators'
44
import applyMiddleware from './applyMiddleware'
55
import compose from './compose'
66
import warning from './utils/warning'
7+
import __DO_NOT_USE__ActionTypes from './utils/actionTypes'
78

89
/*
910
* This is a dummy function to check if the function name has been altered by minification.
@@ -30,5 +31,6 @@ export {
3031
combineReducers,
3132
bindActionCreators,
3233
applyMiddleware,
33-
compose
34+
compose,
35+
__DO_NOT_USE__ActionTypes
3436
}

test/combineReducers.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable no-console */
2-
import { createStore, combineReducers } from '../'
3-
import ActionTypes from '../src/utils/actionTypes'
2+
import { createStore, combineReducers, __DO_NOT_USE__ActionTypes as ActionTypes } from '../'
43

54
describe('Utils', () => {
65
describe('combineReducers', () => {

0 commit comments

Comments
 (0)