@@ -246,13 +246,13 @@ function CryptoSubtlePolyfillTest() {
246246 // Test 1: Check if crypto.subtle exists
247247 tasks . push (
248248 await runAppCryptoTestTask ( {
249- expect : true ,
249+ expect : ' true' ,
250250 name : 'crypto.subtle exists' ,
251251 fn : async ( ) => {
252- return (
252+ return String (
253253 typeof crypto !== 'undefined' &&
254- typeof crypto . subtle !== 'undefined' &&
255- typeof crypto . subtle . digest === 'function'
254+ typeof crypto . subtle !== 'undefined' &&
255+ typeof crypto . subtle . digest === 'function' ,
256256 ) ;
257257 } ,
258258 } ) ,
@@ -327,7 +327,7 @@ function CryptoSubtlePolyfillTest() {
327327 tasks . push (
328328 await runAppCryptoTestTask ( {
329329 expect :
330- 'e23dacc73c1e1e4acc2da94fff24f54ae01f1cb2b94a77ebf5ea27e22b03e614 ' ,
330+ 'f0c2f8b2aad90ad913c0561953b38bf3d435f59b5e4ef24eebc6605b0b444907 ' ,
331331 name : 'crypto.subtle.digest(PKCE simulation)' ,
332332 fn : async ( ) => {
333333 const hashBuffer = await crypto . subtle . digest (
@@ -351,7 +351,9 @@ function CryptoSubtlePolyfillTest() {
351351 ) ,
352352 ) ;
353353
354- const allPassed = tasks . every ( ( t ) => t . passed ) ;
354+ const allPassed = tasks . every (
355+ ( t ) => t . isCorrect === AppCryptoTestEmoji . isCorrect ,
356+ ) ;
355357 if ( allPassed ) {
356358 Toast . success ( {
357359 title : 'crypto.subtle polyfill test passed' ,
0 commit comments