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; } ); }); }); -