@@ -291,7 +291,7 @@ describe('openEO testing-api back-end', () => {
291291 let con ;
292292 // Skip this test for now, EODC back-end has no CORS headers
293293 test ( 'Connect' , async ( ) => {
294- con = await OpenEO . connect ( TESTBACKEND ) ;
294+ con = await Client . connect ( TESTBACKEND ) ;
295295 expect ( con instanceof Connection ) . toBeTruthy ( ) ;
296296 let cap = con . capabilities ( ) ;
297297 expect ( cap instanceof Capabilities ) . toBeTruthy ( ) ;
@@ -546,6 +546,7 @@ describe('openEO testing-api back-end', () => {
546546 let r = await con . computeResult ( INVALID_PROCESS , 'jpeg' ) ;
547547 expect ( r ) . toBeUndefined ( ) ;
548548 } catch ( error ) {
549+ console . log ( error )
549550 expect ( error . code ) . toBe ( "ResultNodeMissing" ) ;
550551 expect ( error . message ) . toBe ( "No result node found for the process." )
551552 }
@@ -623,19 +624,18 @@ describe('openEO testing-api back-end', () => {
623624 VALID_PROCESS ,
624625 "processing_params" ,
625626 "contains processing params" ,
626- null ,
627- null ,
628627 processing_params
629628 ) ;
630- expect ( job instanceof Job ) . toBeTruthy ( ) ;
631- expect ( job . id ) . not . toBeNull ( ) ;
632- expect ( job . id ) . not . toBeUndefined ( ) ;
633- expect ( job . invalid_parameter ) . toBe ( undefined ) ;
629+ console . log ( jobPP )
630+ expect ( jobPP instanceof Job ) . toBeTruthy ( ) ;
631+ expect ( jobPP . id ) . not . toBeNull ( ) ;
632+ expect ( jobPP . id ) . not . toBeUndefined ( ) ;
634633 } )
635634
636635 test ( 'Get Job with processing parameters' , async ( ) => {
637636 res = await con . getJob ( jobPP . id )
638637 jobDesc = await res . describeJob ( )
638+ console . log ( jobDesc )
639639 expect ( jobDesc . extra [ 'driver-memory' ] ) . toBe ( "1G" )
640640 expect ( jobDesc . extra [ 'invalid-parameter' ] ) . toBe ( undefined )
641641 await jobPP . deleteJob ( )
0 commit comments