improve error reporting

This commit is contained in:
El RIDO 2025-10-06 17:35:34 +02:00
parent b8037d869c
commit d40dac4825
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

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