Skip to content

Commit

Permalink
Merge pull request #321 from steff456/fix-tests
Browse files Browse the repository at this point in the history
Fix environment search tests
  • Loading branch information
Nikita Karetnikov authored Nov 3, 2023
2 parents b4a5b46 + 01999aa commit 887c396
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/environments/EnvironmentSearch.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import React from "react";
import { Provider } from "react-redux";
import { fireEvent, render, RenderResult } from "@testing-library/react";
import { EnvironmentsSearch } from "../../src/features/environments";
import { mockTheme } from "../testutils";
import { store } from "../../src/store";

describe("<EnvironmentsSearch />", () => {
const mockOnChange = jest.fn();
let component: RenderResult;

beforeEach(() => {
component = render(<EnvironmentsSearch onChange={mockOnChange} />);
component = render(
mockTheme(
<Provider store={store}>
<EnvironmentsSearch onChange={mockOnChange} />
</Provider>
)
);
});

it("should render", () => {
Expand Down

0 comments on commit 887c396

Please sign in to comment.