mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
Added Jest test suite
This commit is contained in:
16
src/test/App.test.js
Normal file
16
src/test/App.test.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import React from "react";
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import "@testing-library/jest-dom";
|
||||
import { Provider } from "react-redux";
|
||||
|
||||
import store from "../store/";
|
||||
import App from "../components/App";
|
||||
|
||||
it("renders an option to view categories", () => {
|
||||
render(
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>
|
||||
);
|
||||
expect(screen.getByText("Categories")).toBeInTheDocument();
|
||||
});
|
||||
Reference in New Issue
Block a user