From e94195aa69614953c8488dab262b6d7277504192 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 19 Dec 2020 01:53:43 +0200 Subject: [PATCH] remove tests --- src/App.test.js | 8 -------- src/constants/steps.js | 7 +++---- src/index.js | 6 ------ src/reportWebVitals.js | 13 ------------- src/setupTests.js | 5 ----- 5 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 src/App.test.js delete mode 100644 src/reportWebVitals.js delete mode 100644 src/setupTests.js diff --git a/src/App.test.js b/src/App.test.js deleted file mode 100644 index 9382b9a..0000000 --- a/src/App.test.js +++ /dev/null @@ -1,8 +0,0 @@ -import { render, screen } from "@testing-library/react"; -import App from "./App"; - -test("renders learn react link", () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/src/constants/steps.js b/src/constants/steps.js index 1f4a3ea..3817716 100644 --- a/src/constants/steps.js +++ b/src/constants/steps.js @@ -1,5 +1,4 @@ -import SettingsIcon from "@material-ui/icons/Settings"; -import GroupAddIcon from "@material-ui/icons/GroupAdd"; +import { GroupAdd, VpnKey } from "@material-ui/icons"; const steps = [ { @@ -7,14 +6,14 @@ const steps = [ title: "Login", route: "/", disabled: false, - icon: + icon: }, { id: 1, title: "About", route: "/about", disabled: false, - icon: + icon: } ]; diff --git a/src/index.js b/src/index.js index 8054340..67f7ebb 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,6 @@ import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; -import reportWebVitals from "./reportWebVitals"; import { BrowserRouter as Router } from "react-router-dom"; ReactDOM.render( @@ -13,8 +12,3 @@ ReactDOM.render( , document.getElementById("root") ); - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js deleted file mode 100644 index 9ecd33f..0000000 --- a/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; diff --git a/src/setupTests.js b/src/setupTests.js deleted file mode 100644 index 1dd407a..0000000 --- a/src/setupTests.js +++ /dev/null @@ -1,5 +0,0 @@ -// jest-dom adds custom jest matchers for asserting on DOM nodes. -// allows you to do things like: -// expect(element).toHaveTextContent(/react/i) -// learn more: https://github.com/testing-library/jest-dom -import "@testing-library/jest-dom";