From d40dac482575598eed727eb8a4a68601b67b8ce0 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Mon, 6 Oct 2025 17:35:34 +0200 Subject: [PATCH] improve error reporting --- js/test/Check.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/js/test/Check.js b/js/test/Check.js index 63428c93..167970ae 100644 --- a/js/test/Check.js +++ b/js/test/Check.js @@ -50,7 +50,11 @@ describe('Check', function () { result2 = isSecureContext === (document.getElementById('insecurecontextnotice').className === 'hidden'), result3 = (document.getElementById('oldnotice').className !== 'hidden'); clean(); - return result1 && result2 && result3; + if (result1 && result2 && result3) { + return true; + } + console.log(result1, result2, result3); + return false; } ); @@ -74,9 +78,12 @@ describe('Check', function () { const result1 = Legacy.Check.getInit() && Legacy.Check.getStatus(), result2 = secureProtocol === (document.getElementById('httpnotice').className === 'hidden'); clean(); - return result1 && result2; + if (result1 && result2) { + return true; + } + console.log(result1, result2); + return false; } ); }); }); -