Skip to content

Commit

Permalink
fix environmentSearch test
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 committed Oct 25, 2023
1 parent b4a5b46 commit 97bfb12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/environments/EnvironmentSearch.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import React from "react";
import { Provider } from "react-redux";
import { fireEvent, render, RenderResult } from "@testing-library/react";
import { EnvironmentsSearch } from "../../src/features/environments";
import { store } from "../../src/store";

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

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

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

0 comments on commit 97bfb12

Please sign in to comment.