|
@@ -1,17 +1,22 @@
|
|
|
import "raf/polyfill";
|
|
|
import React from "react";
|
|
|
-import ReactDOM from "react-dom";
|
|
|
import App from "./App";
|
|
|
-import { configure, shallow } from 'enzyme';
|
|
|
-import Adapter from 'enzyme-adapter-react-16';
|
|
|
+import { configure, shallow } from "enzyme";
|
|
|
+import Adapter from "enzyme-adapter-react-16";
|
|
|
|
|
|
|
|
|
|
|
|
-configure({ adapter: new Adapter });
|
|
|
+configure({ adapter: new Adapter() });
|
|
|
|
|
|
describe("<App />>", () => {
|
|
|
it("should render App", () => {
|
|
|
- const wrapper = shallow(<App />);
|
|
|
+ const wrapper = shallow(<App />, {
|
|
|
+
|
|
|
+ context: {},
|
|
|
+
|
|
|
+
|
|
|
+ disableLifecycleMethods: true,
|
|
|
+ });
|
|
|
console.log(wrapper.debug());
|
|
|
});
|
|
|
});
|