mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Remove sample test
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
import { mount, ReactWrapper } from "enzyme";
|
|
||||||
import * as React from "react";
|
|
||||||
import C from "./sample-components/basic";
|
|
||||||
|
|
||||||
describe("Component", () => {
|
|
||||||
let container: HTMLDivElement;
|
|
||||||
let wrapper: ReactWrapper;
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
container = document.body.appendChild(document.createElement("div"));
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(() => {
|
|
||||||
document.body.removeChild(container);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("should render correctly", () => {
|
|
||||||
const rootRef = React.createRef<C>();
|
|
||||||
|
|
||||||
rootRef.current && rootRef.current;
|
|
||||||
|
|
||||||
wrapper = mount(<C text="text" ref={rootRef} />, { attachTo: container });
|
|
||||||
expect(wrapper.html()).toMatchSnapshot();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user