import { describe, expect, it } from 'vitest'

import { navItems } from '@/app/navigation/nav'
import { appChildren } from '@/app/router/routes'

describe('brain routing', () => {
  it('points the knowledge brain nav item to /brain', () => {
    const item = navItems.find((entry) => entry.name === '知识大脑')

    expect(item?.path).toBe('/brain')
  })

  it('registers a brain page route', () => {
    const route = appChildren.find((entry) => entry.name === 'brain')

    expect(route?.path).toBe('brain')
  })
})
