@@ -15,7 +15,7 @@ describe('<Redirect>', () => {
15
15
linkMiddleware : [ ] ,
16
16
location : { } ,
17
17
urls : {
18
- makeLocation ( { urlName, params, query } ) {
18
+ makeLocation ( { urlName, params} ) {
19
19
expect ( urlName ) . toEqual ( 'user:profile' ) ;
20
20
expect ( params ) . toEqual ( { username : 'x' } ) ;
21
21
return { pathname : "/u/x/" , search : '?a=b' } ;
@@ -39,12 +39,12 @@ describe('<Redirect>', () => {
39
39
40
40
it ( 'should redirect on mount' , ( ) => {
41
41
mount ( < Redirect urlName = "user:profile" params = { { username : 'x' } } state = { { statevar : 1 } } /> , { context} ) ;
42
- expect ( navigate ) . toBeCalledWith ( jasmine . objectContaining ( { urlName : "user:profile" , params :{ username : 'x' } , state : { statevar : 1 } } ) , false ) ;
42
+ expect ( navigate ) . toBeCalledWith ( jasmine . objectContaining ( { urlName : "user:profile" , params : { username : 'x' } , state : { statevar : 1 } } ) , false ) ;
43
43
} ) ;
44
44
45
45
it ( 'should replace if instructed' , ( ) => {
46
46
mount ( < Redirect urlName = "user:profile" params = { { username : 'x' } } state = { { statevar : 1 } } replace = { true } /> , { context} ) ;
47
- expect ( navigate ) . toBeCalledWith ( jasmine . objectContaining ( { urlName : "user:profile" , params :{ username : 'x' } , state : { statevar : 1 } } ) , true ) ;
47
+ expect ( navigate ) . toBeCalledWith ( jasmine . objectContaining ( { urlName : "user:profile" , params : { username : 'x' } , state : { statevar : 1 } } ) , true ) ;
48
48
} ) ;
49
49
50
50
it ( 'should update serverResult if provided' , ( ) => {
0 commit comments