Remove TestContext from App.test.js

The TestContext is only required for components that depend on react-admin,
but not for the Admin component itself.

Change-Id: I3e07cb6bfa592f1bf59ca282cdf1c2e6c922f619
This commit is contained in:
Manuel Stahl 2021-05-04 19:16:21 +02:00
parent 10831796e3
commit c8082a7198

View File

@ -1,14 +1,9 @@
import React from "react"; import React from "react";
import { TestContext } from "ra-test";
import { shallow } from "enzyme"; import { shallow } from "enzyme";
import App from "./App"; import App from "./App";
describe("App", () => { describe("App", () => {
it("renders", () => { it("renders", () => {
shallow( shallow(<App />);
<TestContext>
<App />
</TestContext>
);
}); });
}); });