File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,17 +96,17 @@ describe('RssComponent', () => {
9696 } ) ;
9797
9898 it ( 'should formulate the correct url given params in url' , ( ) => {
99- const route = comp . formulateRoute ( uuid , 'opensearch' , options , query ) ;
99+ const route = comp . formulateRoute ( uuid , 'opensearch/search ' , options , query ) ;
100100 expect ( route ) . toBe ( '/opensearch/search?format=atom&scope=2cfcf65e-0a51-4bcb-8592-b8db7b064790&sort=dc.title&sort_direction=DESC&query=test' ) ;
101101 } ) ;
102102
103103 it ( 'should skip uuid if its null' , ( ) => {
104- const route = comp . formulateRoute ( null , 'opensearch' , options , query ) ;
104+ const route = comp . formulateRoute ( null , 'opensearch/search ' , options , query ) ;
105105 expect ( route ) . toBe ( '/opensearch/search?format=atom&sort=dc.title&sort_direction=DESC&query=test' ) ;
106106 } ) ;
107107
108108 it ( 'should default to query * if none provided' , ( ) => {
109- const route = comp . formulateRoute ( null , 'opensearch' , options , null ) ;
109+ const route = comp . formulateRoute ( null , 'opensearch/search ' , options , null ) ;
110110 expect ( route ) . toBe ( '/opensearch/search?format=atom&sort=dc.title&sort_direction=DESC&query=*' ) ;
111111 } ) ;
112112} ) ;
You can’t perform that action at this time.
0 commit comments