From 1d6bea95bcb24d1d9526978b31de8da9be12637e Mon Sep 17 00:00:00 2001 From: MuhammadUmer44 Date: Wed, 25 Sep 2024 00:10:04 +0500 Subject: [PATCH] fix(create-bounty): confirm Button Should Disable --- src/components/AddContentModal/__tests__/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/AddContentModal/__tests__/index.tsx b/src/components/AddContentModal/__tests__/index.tsx index bd74d28387..6c41f8dfc4 100644 --- a/src/components/AddContentModal/__tests__/index.tsx +++ b/src/components/AddContentModal/__tests__/index.tsx @@ -1,13 +1,13 @@ /* eslint-disable padding-line-between-statements */ import '@testing-library/jest-dom' -import { render, waitFor, fireEvent } from '@testing-library/react' +import { fireEvent, render, waitFor } from '@testing-library/react' +import React from 'react' +import { FormProvider, useForm } from 'react-hook-form' +import * as sphinx from 'sphinx-bridge' import { api } from '~/network/api' -import { getLSat } from '~/utils' import { sphinxBridge } from '~/testSphinxBridge' -import * as sphinx from 'sphinx-bridge' +import { getLSat } from '~/utils' import { AddContentModal } from '../index' -import { FormProvider, useForm } from 'react-hook-form' -import React from 'react' jest.mock('~/network/api') jest.mock('~/utils') @@ -31,7 +31,7 @@ const TestComponent = () => { } describe('AddContentModal', () => { - it('should send the correct tweet_id when sourceType is x.com', () => { + it('should send the corrects tweet_id when sourceType is x.com', () => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore ;(sphinx.enable as jest.Mock).mockResolvedValue({ pubkey: 'test_pubkey' })