@@ -107,7 +107,7 @@ describe('useDashboardsLimit', () => {
107107 { id : '2' , title : 'Dashboard 2' } ,
108108 { id : '3' , title : 'Dashboard 3' } ,
109109 ] ,
110- match : [ MockApiClient . matchQuery ( { per_page : 11 } ) ] ,
110+ match : [ MockApiClient . matchQuery ( { per_page : 10 , filter : 'excludePrebuilt' } ) ] ,
111111 } ) ;
112112
113113 const { result} = renderHookWithProviders ( ( ) => useDashboardsLimit ( ) , {
@@ -149,7 +149,7 @@ describe('useDashboardsLimit', () => {
149149 { id : '2' , title : 'Dashboard 2' } ,
150150 { id : '3' , title : 'Dashboard 3' } ,
151151 ] ,
152- match : [ MockApiClient . matchQuery ( { per_page : 4 } ) ] ,
152+ match : [ MockApiClient . matchQuery ( { per_page : 3 , filter : 'excludePrebuilt' } ) ] ,
153153 } ) ;
154154
155155 const { result} = renderHookWithProviders ( ( ) => useDashboardsLimit ( ) , {
@@ -195,7 +195,7 @@ describe('useDashboardsLimit', () => {
195195 { id : '2' , title : 'Dashboard 2' } ,
196196 { id : '3' , title : 'Dashboard 3' } ,
197197 ] ,
198- match : [ MockApiClient . matchQuery ( { per_page : 3 } ) ] ,
198+ match : [ MockApiClient . matchQuery ( { per_page : 2 , filter : 'excludePrebuilt' } ) ] ,
199199 } ) ;
200200
201201 const { result} = renderHookWithProviders ( ( ) => useDashboardsLimit ( ) , {
@@ -237,7 +237,7 @@ describe('useDashboardsLimit', () => {
237237 const dashboardsRequest = MockApiClient . addMockResponse ( {
238238 url : '/organizations/org-slug/dashboards/' ,
239239 body : [ ] ,
240- match : [ MockApiClient . matchQuery ( { per_page : 11 } ) ] ,
240+ match : [ MockApiClient . matchQuery ( { per_page : 10 , filter : 'excludePrebuilt' } ) ] ,
241241 } ) ;
242242
243243 const { result} = renderHookWithProviders ( ( ) => useDashboardsLimit ( ) , {
@@ -271,7 +271,7 @@ describe('useDashboardsLimit', () => {
271271 MockApiClient . addMockResponse ( {
272272 url : '/organizations/org-slug/dashboards/' ,
273273 statusCode : 500 ,
274- match : [ MockApiClient . matchQuery ( { per_page : 11 } ) ] ,
274+ match : [ MockApiClient . matchQuery ( { per_page : 10 , filter : 'excludePrebuilt' } ) ] ,
275275 } ) ;
276276
277277 const { result} = renderHookWithProviders ( ( ) => useDashboardsLimit ( ) , {
0 commit comments