mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #33509 All changes were approved in PRs to this feature branch. --------- Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Co-authored-by: Ian Littman <iansltx@gmail.com> Co-authored-by: jacobshandling <61553566+jacobshandling@users.noreply.github.com> Co-authored-by: George Karr <georgekarrv@users.noreply.github.com>
17 lines
368 B
TypeScript
17 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();
|
|
});
|
|
});
|