Skip to content

Commit

Permalink
add initial component tests
Browse files Browse the repository at this point in the history
Signed-off-by: John DeAngelis <[email protected]>
  • Loading branch information
johndeange committed Aug 7, 2024
1 parent 99b0290 commit 773819d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { render } from "@testing-library/react";
import UserEmailComboBox from "./UserEmailComboBox.jsx";
import { Provider } from "react-redux";
import store from "../../../store";

describe("UserEmailComboBox", () => {
it("renders without crashing", () => {
render(
<Provider store={store}>
<App />
</Provider>
);
});
});

const App = () => {
<UserEmailComboBox></UserEmailComboBox>;
};
18 changes: 18 additions & 0 deletions frontend/src/pages/users/admin/UserAdmin.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { render } from "@testing-library/react";
import { Provider } from "react-redux";
import store from "../../../store";
import UserAdmin from "./UserAdmin.jsx";

describe("UserAdmin", () => {
it("renders without crashing", () => {
render(
<Provider store={store}>
<App />
</Provider>
);
});
});

const App = () => {
<UserAdmin></UserAdmin>;
};

0 comments on commit 773819d

Please sign in to comment.