Fix the react test.

It's still a useless test, but now it passes.
This commit is contained in:
Dan Albert 2022-10-07 13:04:22 -07:00 committed by Raffson
parent 998a58df34
commit 326291e708
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -1,9 +1,12 @@
import App from "./App";
import { render, screen } from "@testing-library/react";
import React from "react";
import { store } from "./app/store";
import { render } from "@testing-library/react";
import { Provider } from "react-redux";
test("renders learn react link", () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
test("app renders", () => {
render(
<Provider store={store}>
<App />
</Provider>
);
});