Anki/react/src/ui/App.test.tsx
Damien Elmes 82f0db7583 add a web UI proof of concept
See react/README
2020-01-06 14:28:07 +10:00

9 lines
262 B
TypeScript

import React from "react";
import { render } from "@testing-library/react";
import App from "./App";
test("renders link", () => {
const { getByText } = render(<App />);
const linkElement = getByText(/decks/i);
expect(linkElement).toBeInTheDocument();
});