@@ -343,7 +343,10 @@ describe('Object copy', () => {
343343 const collabCalled = [ ] ;
344344 const env = {
345345 dacollab : {
346- fetch : ( x ) => { collabCalled . push ( x ) ; } ,
346+ fetch : ( x ) => {
347+ collabCalled . push ( x ) ;
348+ return { body : { cancel : ( ) => { } } } ;
349+ } ,
347350 } ,
348351 } ;
349352 const daCtx = {
@@ -569,7 +572,10 @@ describe('Object copy', () => {
569572 const collabCalled = [ ] ;
570573 const env = {
571574 dacollab : {
572- fetch : ( x ) => { collabCalled . push ( x ) ; } ,
575+ fetch : ( x ) => {
576+ collabCalled . push ( x ) ;
577+ return { body : { cancel : ( ) => { } } } ;
578+ } ,
573579 } ,
574580 } ;
575581 const daCtx = { bucket : 'mybucket' , org : 'xorg' } ;
@@ -631,7 +637,10 @@ describe('Object copy', () => {
631637 const collabCalled = [ ] ;
632638 const env = {
633639 dacollab : {
634- fetch : ( x ) => { collabCalled . push ( x ) ; } ,
640+ fetch : ( x ) => {
641+ collabCalled . push ( x ) ;
642+ return { body : { cancel : ( ) => { } } } ;
643+ } ,
635644 } ,
636645 } ;
637646 const daCtx = { bucket : 'test-bucket' , org : 'qqqorg' , origin : 'http://qqq' } ;
@@ -680,7 +689,7 @@ describe('Object copy', () => {
680689 return null ;
681690 } ;
682691
683- const env = { dacollab : { fetch : ( ) => { } } } ;
692+ const env = { dacollab : { fetch : ( ) => ( { body : { cancel : ( ) => { } } } ) } } ;
684693 const ctx = {
685694 bucket : 'root-bucket' ,
686695 org : 'foo' ,
@@ -713,7 +722,7 @@ describe('Object copy', () => {
713722 DA_JOBS [ key ] = value ;
714723 } ,
715724 } ,
716- dacollab : { fetch : ( ) => { } } ,
725+ dacollab : { fetch : ( ) => ( { body : { cancel : ( ) => { } } } ) } ,
717726 } ;
718727 s3Mock . on ( ListObjectsV2Command )
719728 . resolves ( {
@@ -797,7 +806,7 @@ describe('Object copy', () => {
797806 return DA_JOBS [ key ] ;
798807 } ,
799808 } ,
800- dacollab : { fetch : ( ) => { } } ,
809+ dacollab : { fetch : ( ) => ( { body : { cancel : ( ) => { } } } ) } ,
801810 } ;
802811
803812 // Mock getObject to return content type for HEAD requests
@@ -858,7 +867,7 @@ describe('Object copy', () => {
858867 delete DA_JOBS [ key ] ;
859868 } ,
860869 } ,
861- dacollab : { fetch : ( ) => { } } ,
870+ dacollab : { fetch : ( ) => ( { body : { cancel : ( ) => { } } } ) } ,
862871 } ;
863872
864873 // Mock getObject to return content type for HEAD requests
0 commit comments