@@ -7,45 +7,52 @@ import specs from './specs.json';
77
88const defaultData = [
99 {
10- id : " 17694075-6d09-4df0-8307-90f41de2f35a" ,
11- uuid : " 17694075-6d09-4df0-8307-90f41de2f35a" ,
12- name : " SQL National Functionality" ,
13- status : " REJECTED" ,
10+ id : ' 17694075-6d09-4df0-8307-90f41de2f35a' ,
11+ uuid : ' 17694075-6d09-4df0-8307-90f41de2f35a' ,
12+ name : ' SQL National Functionality' ,
13+ status : ' REJECTED' ,
1414 disabledByType : null ,
15- description : " Networked non-volatile challenge" ,
16- OauthCallbackUrl : " https://example.com/oauthCallback" ,
17- OauthScope : " OOB" ,
18- OauthType : " public" ,
19- apiKey : " f2055ef4-dd20-4a71-bd91-18042cc348c9" ,
20- keySecret : " 3ae27eaf-c882-429f-8339-94a675088486" ,
15+ description : ' Networked non-volatile challenge' ,
16+ OauthCallbackUrl : ' https://example.com/oauthCallback' ,
17+ OauthScope : ' OOB' ,
18+ OauthType : ' public' ,
19+ apiKey : ' f2055ef4-dd20-4a71-bd91-18042cc348c9' ,
20+ keySecret : ' 3ae27eaf-c882-429f-8339-94a675088486' ,
2121 apiIds : {
22- results : [ "beb8833e-1876-4b31-ace3-5d50aa0d9007" , "8a334a2f-de19-472a-bb11-5a6e38e1c2ee" ]
22+ results : [
23+ 'beb8833e-1876-4b31-ace3-5d50aa0d9007' ,
24+ '8a334a2f-de19-472a-bb11-5a6e38e1c2ee' ,
25+ ] ,
2326 } ,
24- _accessibleApis : [ " beb8833e-1876-4b31-ace3-5d50aa0d9007" ]
27+ _accessibleApis : [ ' beb8833e-1876-4b31-ace3-5d50aa0d9007' ] ,
2528 } ,
2629 {
27- id : " 80dc52f6-1d63-4c10-bf94-cae666c03dc8" ,
28- uuid : " 80dc52f6-1d63-4c10-bf94-cae666c03dc8" ,
29- name : " GB Future Response" ,
30- status : " APPLICATION_PENDING_APPROVAL" ,
30+ id : ' 80dc52f6-1d63-4c10-bf94-cae666c03dc8' ,
31+ uuid : ' 80dc52f6-1d63-4c10-bf94-cae666c03dc8' ,
32+ name : ' GB Future Response' ,
33+ status : ' APPLICATION_PENDING_APPROVAL' ,
3134 disabledByType : null ,
32- description : " Distributed bifurcated customer loyalty" ,
33- OauthCallbackUrl : " https://example.com/oauthCallback" ,
34- OauthScope : " OOB" ,
35- OauthType : " public" ,
36- apiKey : " b2dcdf94-d7cf-47e1-9b03-9efb862f0a9b" ,
37- keySecret : " b2e97991-9a8c-4160-a9e2-ea10be778f48" ,
35+ description : ' Distributed bifurcated customer loyalty' ,
36+ OauthCallbackUrl : ' https://example.com/oauthCallback' ,
37+ OauthScope : ' OOB' ,
38+ OauthType : ' public' ,
39+ apiKey : ' b2dcdf94-d7cf-47e1-9b03-9efb862f0a9b' ,
40+ keySecret : ' b2e97991-9a8c-4160-a9e2-ea10be778f48' ,
3841 apiIds : {
39- results : [ "32b97328-5800-4811-b53d-1ad107d36541" , "8a334a2f-de19-472a-bb11-5a6e38e1c2ee" ]
42+ results : [
43+ '32b97328-5800-4811-b53d-1ad107d36541' ,
44+ '8a334a2f-de19-472a-bb11-5a6e38e1c2ee' ,
45+ ] ,
4046 } ,
41- _accessibleApis : [ " 32b97328-5800-4811-b53d-1ad107d36541" ]
47+ _accessibleApis : [ ' 32b97328-5800-4811-b53d-1ad107d36541' ] ,
4248 } ,
4349] ;
4450
4551const dataProvider = {
4652 getList : jest . fn ( ) . mockResolvedValue ( {
4753 data : defaultData ,
4854 total : defaultData . length ,
55+ totalPages : 1 ,
4956 } ) ,
5057 getOne : jest . fn ( ) . mockResolvedValue ( {
5158 data : specs ,
@@ -60,8 +67,8 @@ const initialState = {
6067 specs : {
6168 data : {
6269 api_1 : specs ,
63- }
64- }
70+ } ,
71+ } ,
6572 } ,
6673 } ,
6774} ;
@@ -78,7 +85,9 @@ describe('ApiSpecs', () => {
7885
7986 await wait ( ( ) => {
8087 expect (
81- getByLabelText ( 'resources.apis.specification.actions.search_or_select_application' )
88+ getByLabelText (
89+ 'resources.apis.specification.actions.search_or_select_application'
90+ )
8291 ) . not . toBeNull ( ) ;
8392 } ) ;
8493 } ) ;
0 commit comments