/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { render, screen } from '@crossed/test'; import { Calendar } from '../Calendar'; jest.mock('../SelectMonth', () => ({ SelectMonth: ({ month, onChange }) => ( ), })); jest.mock('../SelectYear', () => ({ SelectYear: ({ year, onChange, years }) => ( ), })); describe('Calendar', () => { const mockDate = new Date(2025, 1, 15); test('renders correctly with default props', () => { render(); expect(screen.getByText('February')).toBeInTheDocument(); expect(screen.getByText('2025')).toBeInTheDocument(); }); test('renders days correctly', () => { render(); expect(screen.getByText('15')).toBeInTheDocument(); }); });