mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
chore(test): rewritten querypagewrapper component test using rtl (#4627)
This commit is contained in:
parent
54a17b9e97
commit
b512eef210
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { mount } from "enzyme";
|
||||
import { render } from "@testing-library/react";
|
||||
import nock from "nock";
|
||||
|
||||
import { connectedComponent, reduxMockStore } from "test/helpers";
|
||||
|
|
@ -34,7 +34,7 @@ describe("QueryPageWrapper - component", () => {
|
|||
|
||||
const mockStore = reduxMockStore(storeWithoutQuery);
|
||||
|
||||
mount(
|
||||
render(
|
||||
connectedComponent(QueryPageWrapper, { mockStore, props: locationProp })
|
||||
);
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ describe("QueryPageWrapper - component", () => {
|
|||
const fetchQuerySpy = jest.spyOn(helpers, "fetchQuery");
|
||||
const mockStore = reduxMockStore(storeWithoutQuery);
|
||||
|
||||
mount(
|
||||
render(
|
||||
connectedComponent(QueryPageWrapper, { mockStore, props: locationProp })
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue