mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix the react test.
It's still a useless test, but now it passes.
This commit is contained in:
parent
84d0a40547
commit
6295f3fd71
@ -1,9 +1,12 @@
|
|||||||
import App from "./App";
|
import App from "./App";
|
||||||
import { render, screen } from "@testing-library/react";
|
import { store } from "./app/store";
|
||||||
import React from "react";
|
import { render } from "@testing-library/react";
|
||||||
|
import { Provider } from "react-redux";
|
||||||
|
|
||||||
test("renders learn react link", () => {
|
test("app renders", () => {
|
||||||
render(<App />);
|
render(
|
||||||
const linkElement = screen.getByText(/learn react/i);
|
<Provider store={store}>
|
||||||
expect(linkElement).toBeInTheDocument();
|
<App />
|
||||||
|
</Provider>
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user