import React from "react";
import { render } from "@testing-library/react";
import { describe, it, expect } from "vitest";
import { Address } from ".";
describe("Address", () => {
    it("renders the address when provided", () => {
        const { getByText } = render(React.createElement(Address, { address: "123 Main St, Springfield" }));
        expect(getByText("123 Main St, Springfield")).toBeInTheDocument();
    });
    it("renders nothing when no address is provided", () => {
        const { container } = render(React.createElement(Address, null));
        expect(container.firstChild).toBeNull();
    });
});
//# sourceMappingURL=index.test.js.map