mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
18 lines
368 B
TypeScript
18 lines
368 B
TypeScript
|
|
import React from "react";
|
||
|
|
import { noop } from "lodash";
|
||
|
|
import { render, screen } from "@testing-library/react";
|
||
|
|
|
||
|
|
import Modal from "./Modal";
|
||
|
|
|
||
|
|
describe("Modal", () => {
|
||
|
|
it("renders title", () => {
|
||
|
|
render(
|
||
|
|
<Modal title="Foobar" onExit={noop}>
|
||
|
|
<div>test</div>
|
||
|
|
</Modal>
|
||
|
|
);
|
||
|
|
|
||
|
|
expect(screen.getByText("Foobar")).toBeVisible();
|
||
|
|
});
|
||
|
|
});
|