Skip to content

Commit

Permalink
Silence the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-sys committed Feb 2, 2020
1 parent 815c401 commit 39cd12c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 8 additions & 5 deletions src/components/choices/ChoiceButton.test.tsx
Original file line number Diff line number Diff line change
@@ -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(<ChoiceButton
choice={c}
makeChoice={() => {}} />);
const { getByText } = render(
<ChoiceButton
choice={c}
makeChoice={() => {}}
/>
);
expect(getByText(c.answer())).toBeInTheDocument();
}
});

0 comments on commit 39cd12c

Please sign in to comment.