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:
parent
10831796e3
commit
c8082a7198
@ -1,14 +1,9 @@
|
||||
import React from "react";
|
||||
import { TestContext } from "ra-test";
|
||||
import { shallow } from "enzyme";
|
||||
import App from "./App";
|
||||
|
||||
describe("App", () => {
|
||||
it("renders", () => {
|
||||
shallow(
|
||||
<TestContext>
|
||||
<App />
|
||||
</TestContext>
|
||||
);
|
||||
shallow(<App />);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user