swap-ui/src/App.test.tsx

10 lines
273 B
TypeScript
Raw Normal View History

2021-05-12 13:10:52 -07:00
import React from "react";
import { render, screen } from "@testing-library/react";
import App from "./App";
2021-05-12 10:57:22 -07:00
2021-05-12 13:10:52 -07:00
test("renders learn react link", () => {
2021-05-12 10:57:22 -07:00
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});