mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-02 13:58:18 -05:00
14 lines
425 B
TypeScript
14 lines
425 B
TypeScript
import {render, screen} from '@testing-library/react';
|
|
import LoadingSpinner from '../../lib/client/LoadingSpinner';
|
|
import '@testing-library/jest-dom';
|
|
|
|
describe('LoadingSpinner', () => {
|
|
it('renders a loading spinner', () => {
|
|
render(<LoadingSpinner/>);
|
|
|
|
// Check if the spinner has the correct classes
|
|
const spinner = screen.getByTestId('spinner');
|
|
expect(spinner).toHaveClass('animate-spin');
|
|
});
|
|
});
|