Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

527 B
Raw Blame
import { getRouteMetadata } from '@/app/route-metadata'
import common from '../locales/en-US/common.json'

vi.mock('server-only', () => ({}))
vi.mock('@/i18n/server', async (importOriginal) => ({
  ...(await importOriginal<typeof import('@/i18n/server')>()),
  getLocaleOnServer: async () => 'en-US',
}))

it('resolves route metadata from the requested namespace and selector', async () => {
  await expect(getRouteMetadata('common', ($) => $['operation.save'])).resolves.toEqual({
    title: common['operation.save'],
  })
})