@@ -82,7 +82,7 @@ describe('web3telegram.sendTelegram()', () => {
8282 ...getTestConfig ( providerWallet . privateKey )
8383 ) ;
8484 validProtectedData = await dataProtector . protectData ( {
85- data :
{ chatId :
'[email protected] ' } , 85+ data : { telegram_chatId : '12345 ' } ,
8686 name : 'test do not use' ,
8787 } ) ;
8888 //create invalid protected data
@@ -201,7 +201,7 @@ describe('web3telegram.sendTelegram()', () => {
201201 expect ( error ?. message ) . toBe ( 'Failed to sendTelegram' ) ;
202202 expect ( error ?. cause ) . toBeInstanceOf ( Error ) ;
203203 expect ( ( error ?. cause as Error ) . message ) . toBe (
204- 'This protected data does not contain "chatId :string" in its schema.'
204+ 'This protected data does not contain "telegram_chatId :string" in its schema.'
205205 ) ;
206206 } ,
207207 MAX_EXPECTED_WEB2_SERVICES_TIME
@@ -212,7 +212,7 @@ describe('web3telegram.sendTelegram()', () => {
212212 async ( ) => {
213213 //create valid protected data with blank order to not have: datasetorder is fully consumed error from iexec sdk
214214 const protectedData = await dataProtector . protectData ( {
215- data : { chatId : '12345' } ,
215+ data : { telegram_chatId : '12345' } ,
216216 name : 'test do not use' ,
217217 } ) ;
218218 await waitSubgraphIndexing ( ) ;
@@ -290,7 +290,7 @@ describe('web3telegram.sendTelegram()', () => {
290290 async ( ) => {
291291 //create valid protected data
292292 const protectedDataForWhitelist = await dataProtector . protectData ( {
293- data :
{ chatId :
'[email protected] ' } , 293+ data : { telegram_chatId : '12345 ' } ,
294294 name : 'test do not use' ,
295295 } ) ;
296296 await waitSubgraphIndexing ( ) ;
0 commit comments