From 39cd12c8c1d06616e07b9c328a4c4091b5794c88 Mon Sep 17 00:00:00 2001 From: Cheuk Yin Ng Date: Sat, 1 Feb 2020 16:11:33 -0800 Subject: [PATCH] Silence the linter --- src/App.test.tsx | 2 +- src/components/choices/ChoiceButton.test.tsx | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/App.test.tsx b/src/App.test.tsx index 81afb43..29a41d8 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {render} from '@testing-library/react'; +import {render} from "@testing-library/react"; import App from "../src/App"; // sample test diff --git a/src/components/choices/ChoiceButton.test.tsx b/src/components/choices/ChoiceButton.test.tsx index e721bd6..f5282c3 100644 --- a/src/components/choices/ChoiceButton.test.tsx +++ b/src/components/choices/ChoiceButton.test.tsx @@ -1,14 +1,17 @@ -import '@testing-library/jest-dom/extend-expect'; +import "@testing-library/jest-dom/extend-expect"; import React from "react"; -import {render} from '@testing-library/react'; +import {render} from "@testing-library/react"; import ChoiceButton from "./ChoiceButton"; import BoomerGregorEvent from "../../events/BoomerGregorEvent"; it("renders choices correctly", () => { for (const c of new BoomerGregorEvent().choices()) { - const { getByText } = render( {}} />); + const { getByText } = render( + {}} + /> + ); expect(getByText(c.answer())).toBeInTheDocument(); } });