/**
 *  (module re-export contract).
 */
import React from 'react'
import { render, screen } from '@testing-library/react'

jest.mock('@/share/components/full-page/401', () => ({
  __esModule: true,
  default: function MockUnauthorized401() {
    return <div data-testid="full-page-401" />
  },
}))

import UnauthorizedPage from '../unauthorized'

describe('[locale]/(end-user)/unauthorized.tsx', () => {
  it('default export is a function component', () => {
    expect(UnauthorizedPage).toEqual(expect.any(Function))
  })

  it('re-exports mocked 401 shell (smoke render)', () => {
    render(<UnauthorizedPage />)
    expect(screen.getByTestId('full-page-401')).toBeInTheDocument()
  })
})
