diff --git a/src/components/AddOn/core/AddOnEntry/AddOnEntry.test.tsx b/src/components/AddOn/core/AddOnEntry/AddOnEntry.test.tsx index 135fc2ca9c..4d20479dc6 100644 --- a/src/components/AddOn/core/AddOnEntry/AddOnEntry.test.tsx +++ b/src/components/AddOn/core/AddOnEntry/AddOnEntry.test.tsx @@ -1,12 +1,21 @@ +// import React from 'react'; +// import { render } from '@testing-library/react'; +// import { BrowserRouter } from 'react-router-dom'; +// import AddOnEntry from './AddOnEntry'; import { ApolloClient, + // ApolloProvider, InMemoryCache, ApolloLink, HttpLink, } from '@apollo/client'; import type { NormalizedCacheObject } from '@apollo/client'; +// import { Provider } from 'react-redux'; +// import { store } from 'state/store'; import { BACKEND_URL } from 'Constant/constant'; +// import i18nForTest from 'utils/i18nForTest'; +// import { I18nextProvider } from 'react-i18next'; const httpLink = new HttpLink({ uri: BACKEND_URL, @@ -15,40 +24,40 @@ const httpLink = new HttpLink({ }, }); -const client: ApolloClient = new ApolloClient({ - cache: new InMemoryCache(), - link: ApolloLink.from([httpLink]), -}); +// const client: ApolloClient = new ApolloClient({ +// cache: new InMemoryCache(), +// link: ApolloLink.from([httpLink]), +// }); describe('Testing AddOnEntry', () => { - const props = { - id: 'string', - enabled: true, - title: 'string', - description: 'string', - createdBy: 'string', - component: 'string', - installed: true, - configurable: true, - modified: true, - isInstalled: true, - getInstalledPlugins: (): { sample: string } => { - return { sample: 'sample' }; - }, - }; + // const props = { + // id: 'string', + // enabled: true, + // title: 'string', + // description: 'string', + // createdBy: 'string', + // component: 'string', + // installed: true, + // configurable: true, + // modified: true, + // isInstalled: true, + // getInstalledPlugins: (): { sample: string } => { + // return { sample: 'sample' }; + // }, + // }; - // test('should render modal and take info to add plugin for registered organization', () => { - // const { getByTestId } = render( - // - // - // - // - // {} - // - // - // - // - // ); - // expect(getByTestId('AddOnEntry')).toBeInTheDocument(); - // }); + test('should render modal and take info to add plugin for registered organization', () => { + // const { getByTestId } = render( + // + // + // + // + // {} + // + // + // + // + // ); + // expect(getByTestId('AddOnEntry')).toBeInTheDocument(); + }); });