From 5ba6adcd7db30b9d1c9c2bfd3fc1579f957f2d7f Mon Sep 17 00:00:00 2001 From: Awais Ansari Date: Wed, 17 Sep 2025 16:52:46 +0500 Subject: [PATCH] refactor: fixed lint issue --- src/register/data/hooks.test.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/register/data/hooks.test.jsx b/src/register/data/hooks.test.jsx index 86979b82..e47760a1 100644 --- a/src/register/data/hooks.test.jsx +++ b/src/register/data/hooks.test.jsx @@ -1,9 +1,10 @@ -import { renderHook } from '@testing-library/react'; import { getConfig } from '@edx/frontend-platform'; import { IntlProvider } from '@edx/frontend-platform/i18n'; -import useRecaptchaSubmission from './hooks'; +import { renderHook } from '@testing-library/react'; import { useGoogleReCaptcha } from 'react-google-recaptcha-v3'; +import useRecaptchaSubmission from './hooks'; + jest.mock('@edx/frontend-platform', () => ({ getConfig: jest.fn(), })); @@ -33,7 +34,7 @@ describe('useRecaptchaSubmission', () => { }); await expect(result.current.executeWithFallback()).rejects.toThrow( - 'CAPTCHA verification failed.' + 'CAPTCHA verification failed.', ); }); @@ -52,7 +53,7 @@ describe('useRecaptchaSubmission', () => { expect(token).toBeNull(); expect(warnSpy).toHaveBeenCalledWith( - 'reCAPTCHA not ready for action: test_action. Proceeding without token.' + 'reCAPTCHA not ready for action: test_action. Proceeding without token.', ); warnSpy.mockRestore();