@@ -17,8 +17,6 @@ describe('bindActionCreators', () => {
17
17
} )
18
18
19
19
it ( 'wraps the action creators with the dispatch function' , ( ) => {
20
- const _console = console
21
- global . console = { error : jest . fn ( ) }
22
20
const boundActionCreators = bindActionCreators ( actionCreators , store . dispatch )
23
21
expect (
24
22
Object . keys ( boundActionCreators )
@@ -33,13 +31,9 @@ describe('bindActionCreators', () => {
33
31
expect ( store . getState ( ) ) . toEqual ( [
34
32
{ id : 1 , text : 'Hello' }
35
33
] )
36
- expect ( console . error ) . toHaveBeenCalled ( )
37
- global . console = _console
38
34
} )
39
35
40
36
it ( 'skips non-function values in the passed object' , ( ) => {
41
- const _console = console
42
- global . console = { error : jest . fn ( ) }
43
37
const boundActionCreators = bindActionCreators ( {
44
38
...actionCreators ,
45
39
foo : 42 ,
@@ -53,9 +47,6 @@ describe('bindActionCreators', () => {
53
47
) . toEqual (
54
48
Object . keys ( actionCreatorFunctions )
55
49
)
56
- // 6 instead of 5 because of `__esModule: true` property from importing `actionCreators`
57
- expect ( console . error . mock . calls . length ) . toBe ( 6 )
58
- global . console = _console
59
50
} )
60
51
61
52
it ( 'supports wrapping a single function only' , ( ) => {
0 commit comments