blob: a773686f22e0c359f41083bca0292fa9244b0132 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 | import React from "react";
import { render } from "@testing-library/react";
import OAuth2Button from "../../components/OAuth2Button";
test("renders oauth2 sign in button text", () => {
    const { getByText } = render(<OAuth2Button />);
    const button = getByText(/Discord Login/i);
    expect(button).toBeInTheDocument();
});
test("renders fontawesome discord icon", () => {
    const { container } = render(<OAuth2Button/>);
    const icon = container.querySelector("[data-icon=\"discord\"]");
    expect(icon).toBeInTheDocument();
});
 |