// REQ-USR-003: renderShell 共享渲染工具自带冒烟用例（T0）
import { describe, it, expect } from 'vitest';
import { screen } from '@testing-library/react';
import { renderShell } from './renderShell';

describe('renderShell', () => {
  it('renderShell mounts a route element', () => {
    renderShell(<div>shell-ok</div>, {
      initialEntries: ['/'],
      preloadedAuth: {
        token: 't',
        user: { id: 1, sUserName: '朱子纯', sUserType: '超级管理员', sLanguage: '中文' },
      },
    });
    expect(screen.getByText('shell-ok')).toBeInTheDocument();
  });
});
