Files
ReadMeABook/tests/components/bookdate/LoadingScreen.test.tsx
T
kikootwo 31bca0052f Add series fields to audiobooks and update related logic
Introduces 'series' and 'seriesPart' fields to the Audiobook model and database schema. Updates API routes, file organization, and path template utilities to support series metadata. Enhances chapter merging logic, improves notification backend testing, and expands test coverage for admin and API routes.
2026-01-28 11:42:00 -05:00

26 lines
741 B
TypeScript

/**
* Component: BookDate Loading Screen Tests
* Documentation: documentation/features/bookdate.md
*/
// @vitest-environment jsdom
import React from 'react';
import { render, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
vi.mock('@/components/layout/Header', () => ({
Header: () => <div data-testid="header" />,
}));
describe('LoadingScreen', () => {
it('renders the loading message and header', async () => {
const { LoadingScreen } = await import('@/components/bookdate/LoadingScreen');
render(<LoadingScreen />);
expect(screen.getByTestId('header')).toBeInTheDocument();
expect(screen.getByText('Finding your next great listen...')).toBeInTheDocument();
});
});