@@ -41,22 +41,22 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
41
41
it ( 'creates actions' , ( ) => {
42
42
expect ( pushPath ( '/foo' , { bar : 'baz' } ) ) . toEqual ( {
43
43
type : UPDATE_PATH ,
44
- payload : {
45
- path : '/foo' ,
46
- replace : false ,
47
- state : { bar : 'baz' } ,
48
- avoidRouterUpdate : false
44
+ payload : {
45
+ path : '/foo' ,
46
+ replace : false ,
47
+ state : { bar : 'baz' } ,
48
+ avoidRouterUpdate : false
49
49
}
50
50
} ) ;
51
51
52
52
expect ( pushPath ( '/foo' , undefined , { avoidRouterUpdate : true } ) ) . toEqual ( {
53
53
type : UPDATE_PATH ,
54
54
payload : {
55
- path : '/foo' ,
56
- state : undefined ,
57
- replace : false ,
58
- avoidRouterUpdate : true
59
- }
55
+ path : '/foo' ,
56
+ state : undefined ,
57
+ replace : false ,
58
+ avoidRouterUpdate : true
59
+ }
60
60
} ) ;
61
61
} ) ;
62
62
} ) ;
@@ -66,31 +66,31 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
66
66
expect ( replacePath ( '/foo' , { bar : 'baz' } ) ) . toEqual ( {
67
67
type : UPDATE_PATH ,
68
68
payload : {
69
- path : '/foo' ,
70
- replace : true ,
71
- state : { bar : 'baz' } ,
72
- avoidRouterUpdate : false
73
- }
69
+ path : '/foo' ,
70
+ replace : true ,
71
+ state : { bar : 'baz' } ,
72
+ avoidRouterUpdate : false
73
+ }
74
74
} ) ;
75
75
76
76
expect ( replacePath ( '/foo' , undefined , { avoidRouterUpdate : true } ) ) . toEqual ( {
77
77
type : UPDATE_PATH ,
78
78
payload : {
79
- path : '/foo' ,
80
- state : undefined ,
81
- replace : true ,
82
- avoidRouterUpdate : true
83
- }
79
+ path : '/foo' ,
80
+ state : undefined ,
81
+ replace : true ,
82
+ avoidRouterUpdate : true
83
+ }
84
84
} ) ;
85
85
86
86
expect ( replacePath ( '/foo' , undefined , { avoidRouterUpdate : false } ) ) . toEqual ( {
87
87
type : UPDATE_PATH ,
88
88
payload : {
89
- path : '/foo' ,
90
- state : undefined ,
91
- replace : true ,
92
- avoidRouterUpdate : false
93
- }
89
+ path : '/foo' ,
90
+ state : undefined ,
91
+ replace : true ,
92
+ avoidRouterUpdate : false
93
+ }
94
94
} ) ;
95
95
} ) ;
96
96
} ) ;
@@ -105,9 +105,9 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
105
105
expect ( routeReducer ( state , {
106
106
type : UPDATE_PATH ,
107
107
payload : {
108
- path : '/bar' ,
109
- replace : false
110
- }
108
+ path : '/bar' ,
109
+ replace : false
110
+ }
111
111
} ) ) . toEqual ( {
112
112
path : '/bar' ,
113
113
replace : false ,
@@ -120,10 +120,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
120
120
expect ( routeReducer ( state , {
121
121
type : UPDATE_PATH ,
122
122
payload : {
123
- path : '/bar' ,
124
- replace : true ,
125
- avoidRouterUpdate : false
126
- }
123
+ path : '/bar' ,
124
+ replace : true ,
125
+ avoidRouterUpdate : false
126
+ }
127
127
} ) ) . toEqual ( {
128
128
path : '/bar' ,
129
129
replace : true ,
@@ -136,10 +136,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
136
136
expect ( routeReducer ( state , {
137
137
type : UPDATE_PATH ,
138
138
payload : {
139
- path : '/bar' ,
140
- replace : false ,
141
- avoidRouterUpdate : true
142
- }
139
+ path : '/bar' ,
140
+ replace : false ,
141
+ avoidRouterUpdate : true
142
+ }
143
143
} ) ) . toEqual ( {
144
144
path : '/bar' ,
145
145
replace : false ,
0 commit comments