chore(test): rewritten querypagewrapper component test using rtl (#4627)

This commit is contained in:
Tharun Rajendran 2022-03-19 00:39:23 +05:30 committed by GitHub
parent 54a17b9e97
commit b512eef210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 })
);