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