0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed tests

This commit is contained in:
Rishabh 2022-07-04 15:57:19 +02:00
parent ac43c86c2e
commit 76bc1a8c07
3 changed files with 8 additions and 21 deletions

View file

@ -2,11 +2,11 @@ import React from 'react';
import './App.css'; import './App.css';
function App() { function App() {
return ( return (
<div className="App"> <div className="App">
Sodo Search Sodo Search
</div> </div>
); );
} }
export default App; export default App;

View file

@ -1,9 +1,9 @@
import { render, screen } from '@testing-library/react'; import {render, screen} from '@testing-library/react';
import App from './App'; import App from './App';
import React from 'react'; import React from 'react';
test('renders learn react link', () => { test('renders learn react link', () => {
render(<App />); render(<App />);
const linkElement = screen.getByText(/Sodo Search/i); const linkElement = screen.getByText(/Sodo Search/i);
expect(linkElement).toBeInTheDocument(); expect(linkElement).toBeInTheDocument();
}); });

View file

@ -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;