Skip to content

Commit

Permalink
Ensure we use the same module instance for action types in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr authored and tomipaul committed Apr 8, 2018
1 parent 5e44a2f commit 43ddd68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import bindActionCreators from './bindActionCreators'
import applyMiddleware from './applyMiddleware'
import compose from './compose'
import warning from './utils/warning'
import __DO_NOT_USE__ActionTypes from './utils/actionTypes'

/*
* This is a dummy function to check if the function name has been altered by minification.
Expand All @@ -30,5 +31,6 @@ export {
combineReducers,
bindActionCreators,
applyMiddleware,
compose
compose,
__DO_NOT_USE__ActionTypes
}
3 changes: 1 addition & 2 deletions test/combineReducers.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable no-console */
import { createStore, combineReducers } from '../'
import ActionTypes from '../src/utils/actionTypes'
import { createStore, combineReducers, __DO_NOT_USE__ActionTypes as ActionTypes } from '../'

describe('Utils', () => {
describe('combineReducers', () => {
Expand Down

0 comments on commit 43ddd68

Please sign in to comment.