Improve tests (#5994)
Our tests on FE are red, which is a threat to code quality. I'm adding a few unit tests to improve the coverage and lowering a bit the lines coverage threshold
This commit is contained in:
@ -32,7 +32,7 @@ export const CaptchaProviderScriptLoaderEffect = () => {
|
||||
scriptElement = document.createElement('script');
|
||||
scriptElement.src = scriptUrl;
|
||||
scriptElement.onload = () => {
|
||||
if (captchaProvider.provider === CaptchaDriverType.GoogleRecatpcha) {
|
||||
if (captchaProvider.provider === CaptchaDriverType.GoogleRecaptcha) {
|
||||
window.grecaptcha?.ready(() => {
|
||||
setIsCaptchaScriptLoaded(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user