@@ -36,7 +36,7 @@ test('should change search', () => {
3636 )
3737
3838 act ( ( ) => {
39- result . current . actions . query ( { search : 'Max' } )
39+ result . current . actions . updateQuery ( { search : 'Max' } )
4040 } )
4141
4242 expect ( result . current . queryParameters . search ) . toBe ( 'Max' )
@@ -49,7 +49,7 @@ test('clear pagination should reset search and page', () => {
4949 )
5050
5151 act ( ( ) => {
52- result . current . actions . query ( { search : 'Max' } )
52+ result . current . actions . updateQuery ( { search : 'Max' } )
5353 } )
5454
5555 act ( ( ) => {
@@ -91,7 +91,7 @@ test('on search change -> page should be reset', () => {
9191 expect ( router . query . page ) . toBe ( '2' )
9292
9393 act ( ( ) => {
94- result . current . actions . query ( { search : 'Max' } )
94+ result . current . actions . updateQuery ( { search : 'Max' } )
9595 } )
9696
9797 expect ( result . current . queryParameters . search ) . toBe ( 'Max' )
@@ -108,8 +108,8 @@ test('query multiple different properties, should keep them all', () => {
108108 )
109109
110110 act ( ( ) => {
111- result . current . actions . query ( { search : 'Max' } )
112- result . current . actions . query ( { department : 'IT' } )
111+ result . current . actions . updateQuery ( { search : 'Max' } )
112+ result . current . actions . updateQuery ( { department : 'IT' } )
113113 } )
114114
115115 expect ( result . current . queryParameters . search ) . toBe ( 'Max' )
@@ -124,7 +124,7 @@ test('query a property that is not configured, should do nothing', () => {
124124 )
125125
126126 act ( ( ) => {
127- result . current . actions . query ( { department : 'IT' } )
127+ result . current . actions . updateQuery ( { department : 'IT' } )
128128 } )
129129
130130 expect ( result . current . queryParameters . search ) . toBe ( '' )
@@ -141,7 +141,7 @@ test('properties in the URL, that are not part of the configuration should be le
141141 )
142142
143143 act ( ( ) => {
144- result . current . actions . query ( { search : 'Max' } )
144+ result . current . actions . updateQuery ( { search : 'Max' } )
145145 } )
146146
147147 expect ( result . current . queryParameters . search ) . toBe ( 'Max' )
@@ -159,7 +159,7 @@ test('query property with default value, should remove it from url', () => {
159159 )
160160
161161 act ( ( ) => {
162- result . current . actions . query ( { search : '' } )
162+ result . current . actions . updateQuery ( { search : '' } )
163163 } )
164164
165165 expect ( result . current . queryParameters . search ) . toBe ( '' )
0 commit comments