mirror of
https://github.com/stablyai/orca.git
synced 2026-10-21 08:03:33 +00:00
12 lines
445 B
TypeScript
12 lines
445 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
const homeSource = readFileSync(new URL('../app/index.tsx', import.meta.url), 'utf8')
|
|
|
|
describe('Home host edit navigation wiring', () => {
|
|
it('uses the cold-navigator-safe edit transition', () => {
|
|
expect(homeSource).toMatch(/const openMobileHostEdit = useOpenMobileHostEdit\(\)/)
|
|
expect(homeSource).toMatch(/onEdit:\s*openMobileHostEdit/)
|
|
})
|
|
})
|