File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ async function processProtectedData({
2828 index > 0
2929 ? process . env [ `IEXEC_DATASET_${ index } _FILENAME` ]
3030 : process . env . IEXEC_DATASET_FILENAME ;
31- const result = { index, protectedData : datasetFilename } ;
31+ const result = {
32+ index,
33+ protectedData : datasetFilename ,
34+ isEmailValid : undefined ,
35+ } ;
3236 try {
3337 let protectedData ;
3438 try {
@@ -161,6 +165,7 @@ async function start() {
161165 results : results . map ( ( r ) => ( {
162166 index : r . index ,
163167 protectedData : r . protectedData ,
168+ // isEmailValid: r.isEmailValid,
164169 success : r . success ,
165170 error : r . error ,
166171 } ) ) ,
Original file line number Diff line number Diff line change @@ -651,6 +651,10 @@ describe('sendEmail', () => {
651651 it ( 'should set the invalid email callback when requested' , async ( ) => {
652652 // protected data setup
653653 process . env . IEXEC_DATASET_FILENAME = 'dataEmailUserDoesNotExist.zip' ;
654+ process . env . IEXEC_REQUESTER_SECRET_1 = JSON . stringify ( {
655+ ...JSON . parse ( process . env . IEXEC_REQUESTER_SECRET_1 ) ,
656+ useCallback : true ,
657+ } ) ;
654658
655659 await expect ( start ( ) ) . resolves . toBeUndefined ( ) ;
656660
You can’t perform that action at this time.
0 commit comments