@@ -18,45 +18,45 @@ describe("can request data", () => {
1818
1919 it ( "gets identities" , async ( ) => {
2020 const list = await client . listIdentities ( ) ;
21- expect ( list . length ) . toBe ( 3 ) ;
21+ expect ( list . length ) . toBe ( 10 ) ;
2222 } ) ;
2323
2424 it ( "gets 1 identity" , async ( ) => {
2525 const identity = await client . getIdentityById (
26- "c6b7e897-ce5e-4769-8938-76cb69d0802c " ,
26+ "0f4725ae-0877-4121-b892-eb77b5768c6e " ,
2727 ) ;
28- expect ( identity . id ) . toBe ( "c6b7e897-ce5e-4769-8938-76cb69d0802c " ) ;
28+ expect ( identity . id ) . toBe ( "0f4725ae-0877-4121-b892-eb77b5768c6e " ) ;
2929 expect ( identity . owner ) . toEqual ( {
30- email : "nicolas @passbase.com" ,
31- firstName : "NICOLAS " ,
32- lastName : "BRUGNEAUX " ,
30+ email : "server-side-sdk-tester @passbase.com" ,
31+ firstName : "AASAMUND SPECIMEN " ,
32+ lastName : "OESTENBYEN " ,
3333 } ) ;
3434 } ) ;
3535
36- it ( "gets 1 identity resources" , async ( ) => {
36+ it ( "gets 1 identity's resources" , async ( ) => {
3737 const resources = await client . listIdentityResources (
38- "c6b7e897-ce5e-4769-8938-76cb69d0802c " ,
38+ "0f4725ae-0877-4121-b892-eb77b5768c6e " ,
3939 ) ;
4040 expect ( resources . length ) . toBe ( 1 ) ;
4141 expect ( resources [ 0 ] . type ) . toBe ( "PASSPORT" ) ;
4242 } ) ;
4343
44- it ( "gets 1 identity resources " , async ( ) => {
44+ it ( "gets 1 resource " , async ( ) => {
4545 const resource = await client . getIdentityResourceById (
46- "c6b7e897-ce5e-4769-8938-76cb69d0802c " ,
47- "44d9c186-5c08-4128-a893-10c1edcb6d28 " ,
46+ "0f4725ae-0877-4121-b892-eb77b5768c6e " ,
47+ "ac3f51ff-02c8-4179-b3c6-4e915ffd6dc2 " ,
4848 ) ;
49- expect ( resource . id ) . toBe ( "44d9c186-5c08-4128-a893-10c1edcb6d28 " ) ;
49+ expect ( resource . id ) . toBe ( "ac3f51ff-02c8-4179-b3c6-4e915ffd6dc2 " ) ;
5050 expect ( resource . type ) . toBe ( "PASSPORT" ) ;
5151 } ) ;
5252
5353 it ( "doesnt get 1 identity resource file" , async ( ) => {
5454 const result = await client . getIdentityResourceFileById (
55- "c6b7e897-ce5e-4769-8938-76cb69d0802c " ,
56- "44d9c186-5c08-4128-a893-10c1edcb6d28 " ,
57- "82ac204f-782d-4f06-9491-da2342f6bf24 " ,
55+ "0f4725ae-0877-4121-b892-eb77b5768c6e " ,
56+ "ac3f51ff-02c8-4179-b3c6-4e915ffd6dc2 " ,
57+ "1aed2e1b-ca2f-4142-8cf6-29701586fec9 " ,
5858 ) ;
5959 expect ( result . type ) . toBe ( "image/png" ) ;
60- expect ( result . size ) . toBe ( 652379 ) ;
60+ expect ( result . size ) . toBeGreaterThanOrEqual ( 640000 ) ;
6161 } ) ;
6262} ) ;
0 commit comments