import { describe, it, expect } from 'vitest';
import App from './App';
import { store } from './store';
import { router } from './router';

describe('App', () => {
  it('exports default App component', () => {
    expect(App).toBeTypeOf('function');
  });

  it('store has expected initial auth slice', () => {
    expect(store.getState().auth.accessToken).toBeNull();
  });

  it('router has /login and /users routes registered', () => {
    const paths = router.routes.map((r) => r.path);
    expect(paths).toContain('/login');
    expect(paths).toContain('/users');
  });
});
