@@ -22,22 +22,22 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
22
22
it ( 'creates actions' , ( ) => {
23
23
expect ( pushPath ( '/foo' , { bar : 'baz' } ) ) . toEqual ( {
24
24
type : UPDATE_PATH ,
25
- payload : {
26
- path : '/foo' ,
27
- replace : false ,
28
- state : { bar : 'baz' } ,
29
- avoidRouterUpdate : false
25
+ payload : {
26
+ path : '/foo' ,
27
+ replace : false ,
28
+ state : { bar : 'baz' } ,
29
+ avoidRouterUpdate : false
30
30
}
31
31
} ) ;
32
32
33
33
expect ( pushPath ( '/foo' , undefined , { avoidRouterUpdate : true } ) ) . toEqual ( {
34
34
type : UPDATE_PATH ,
35
35
payload : {
36
- path : '/foo' ,
37
- state : undefined ,
38
- replace : false ,
39
- avoidRouterUpdate : true
40
- }
36
+ path : '/foo' ,
37
+ state : undefined ,
38
+ replace : false ,
39
+ avoidRouterUpdate : true
40
+ }
41
41
} ) ;
42
42
} ) ;
43
43
} ) ;
@@ -47,31 +47,31 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
47
47
expect ( replacePath ( '/foo' , { bar : 'baz' } ) ) . toEqual ( {
48
48
type : UPDATE_PATH ,
49
49
payload : {
50
- path : '/foo' ,
51
- replace : true ,
52
- state : { bar : 'baz' } ,
53
- avoidRouterUpdate : false
54
- }
50
+ path : '/foo' ,
51
+ replace : true ,
52
+ state : { bar : 'baz' } ,
53
+ avoidRouterUpdate : false
54
+ }
55
55
} ) ;
56
56
57
57
expect ( replacePath ( '/foo' , undefined , { avoidRouterUpdate : true } ) ) . toEqual ( {
58
58
type : UPDATE_PATH ,
59
59
payload : {
60
- path : '/foo' ,
61
- state : undefined ,
62
- replace : true ,
63
- avoidRouterUpdate : true
64
- }
60
+ path : '/foo' ,
61
+ state : undefined ,
62
+ replace : true ,
63
+ avoidRouterUpdate : true
64
+ }
65
65
} ) ;
66
66
67
67
expect ( replacePath ( '/foo' , undefined , { avoidRouterUpdate : false } ) ) . toEqual ( {
68
68
type : UPDATE_PATH ,
69
69
payload : {
70
- path : '/foo' ,
71
- state : undefined ,
72
- replace : true ,
73
- avoidRouterUpdate : false
74
- }
70
+ path : '/foo' ,
71
+ state : undefined ,
72
+ replace : true ,
73
+ avoidRouterUpdate : false
74
+ }
75
75
} ) ;
76
76
} ) ;
77
77
} ) ;
@@ -86,9 +86,9 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
86
86
expect ( routeReducer ( state , {
87
87
type : UPDATE_PATH ,
88
88
payload : {
89
- path : '/bar' ,
90
- replace : false
91
- }
89
+ path : '/bar' ,
90
+ replace : false
91
+ }
92
92
} ) ) . toEqual ( {
93
93
path : '/bar' ,
94
94
replace : false ,
@@ -101,10 +101,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
101
101
expect ( routeReducer ( state , {
102
102
type : UPDATE_PATH ,
103
103
payload : {
104
- path : '/bar' ,
105
- replace : true ,
106
- avoidRouterUpdate : false
107
- }
104
+ path : '/bar' ,
105
+ replace : true ,
106
+ avoidRouterUpdate : false
107
+ }
108
108
} ) ) . toEqual ( {
109
109
path : '/bar' ,
110
110
replace : true ,
@@ -117,10 +117,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
117
117
expect ( routeReducer ( state , {
118
118
type : UPDATE_PATH ,
119
119
payload : {
120
- path : '/bar' ,
121
- replace : false ,
122
- avoidRouterUpdate : true
123
- }
120
+ path : '/bar' ,
121
+ replace : false ,
122
+ avoidRouterUpdate : true
123
+ }
124
124
} ) ) . toEqual ( {
125
125
path : '/bar' ,
126
126
replace : false ,
0 commit comments