mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-04 21:29:13 +00:00
v0.1.0
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user