Skip to content

Commit 372e489

Browse files
committed
adding missing component test
1 parent 0fcfc4f commit 372e489

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { describe, it, expect } from "vitest";
2+
import { render, screen } from "@testing-library/react";
3+
import { Component } from "./Component";
4+
5+
describe("Component", () => {
6+
it("should render the Component component", () => {
7+
const boxProps = {
8+
type: "Box",
9+
id: "bx",
10+
children: ["Hello!", "World!"],
11+
onChange: () => {},
12+
};
13+
render(<Component {...boxProps} />);
14+
// to inspect rendered component, do:
15+
// expect(document.body).toEqual({});
16+
expect(screen.getByText("World!")).toBeUndefined();
17+
});
18+
});

0 commit comments

Comments
 (0)