12 lines
366 B
TypeScript
12 lines
366 B
TypeScript
|
|
import { describe, it, expect } from 'vitest';
|
||
|
|
import { render, container } from '@testing-library/react';
|
||
|
|
|
||
|
|
import DashboardLoading from '../loading';
|
||
|
|
|
||
|
|
describe('DashboardLoading', () => {
|
||
|
|
it('renders a loading spinner', () => {
|
||
|
|
const { container: c } = render(<DashboardLoading />);
|
||
|
|
expect(c.querySelector('.animate-spin')).toBeInTheDocument();
|
||
|
|
});
|
||
|
|
});
|