mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-24 09:33:42 -04:00
14 lines
422 B
TypeScript
14 lines
422 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');
|
|
});
|
|
});
|