From 76bc1a8c079fdd7f4983fb9dfc29fc04f4e1d58a Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 4 Jul 2022 15:57:19 +0200 Subject: [PATCH] Fixed tests --- ghost/sodo-search/src/App.js | 8 ++++---- ghost/sodo-search/src/App.test.js | 8 ++++---- ghost/sodo-search/src/reportWebVitals.js | 13 ------------- 3 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 ghost/sodo-search/src/reportWebVitals.js diff --git a/ghost/sodo-search/src/App.js b/ghost/sodo-search/src/App.js index 75746d813e..d802a59736 100644 --- a/ghost/sodo-search/src/App.js +++ b/ghost/sodo-search/src/App.js @@ -2,11 +2,11 @@ import React from 'react'; import './App.css'; function App() { - return ( -
+ return ( +
Sodo Search -
- ); +
+ ); } export default App; diff --git a/ghost/sodo-search/src/App.test.js b/ghost/sodo-search/src/App.test.js index 9612056162..35bafd2778 100644 --- a/ghost/sodo-search/src/App.test.js +++ b/ghost/sodo-search/src/App.test.js @@ -1,9 +1,9 @@ -import { render, screen } from '@testing-library/react'; +import {render, screen} from '@testing-library/react'; import App from './App'; import React from 'react'; test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/Sodo Search/i); - expect(linkElement).toBeInTheDocument(); + render(); + const linkElement = screen.getByText(/Sodo Search/i); + expect(linkElement).toBeInTheDocument(); }); diff --git a/ghost/sodo-search/src/reportWebVitals.js b/ghost/sodo-search/src/reportWebVitals.js deleted file mode 100644 index 5253d3ad9e..0000000000 --- a/ghost/sodo-search/src/reportWebVitals.js +++ /dev/null @@ -1,13 +0,0 @@ -const reportWebVitals = onPerfEntry => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals;