2024-01-06 18:42:41 -07:00
|
|
|
import React from "react";
|
|
|
|
import renderer from "react-test-renderer";
|
|
|
|
|
2024-01-06 18:51:59 -07:00
|
|
|
import App from "../App";
|
2024-01-06 18:42:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
describe("<App />", () => {
|
|
|
|
it("has 1 child", () => {
|
|
|
|
const tree = renderer.create(<App />).toJSON();
|
|
|
|
expect(tree.children.length).toBe(1);
|
|
|
|
});
|
|
|
|
});
|