mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-02 21:19:13 +00:00
14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
import React from "react"
|
|
import { render, screen } from "@testing-library/react"
|
|
import "@testing-library/jest-dom"
|
|
import { LoadingSpinner } from "../LoadingSpinner"
|
|
|
|
describe("LoadingSpinner", () => {
|
|
it("renders the spinner with the correct animation class", () => {
|
|
render(<LoadingSpinner />)
|
|
const spinner = screen.getByTestId("loading-spinner")
|
|
expect(spinner).toBeInTheDocument()
|
|
expect(spinner).toHaveClass("animate-spin")
|
|
})
|
|
})
|