MCPcopy Create free account
hub / github.com/anders-swanson/oracle-database-code-samples / headFor

Function headFor

website/tests/seo.test.ts:61–69  ·  view source on GitHub ↗
(route: { name: string; params?: Record<string, string> })

Source from the content-addressed store, hash-verified

59
60describe('SEO metadata sync', () => {
61 function headFor(route: { name: string; params?: Record<string, string> }) {
62 return buildRouteHead(
63 resolveRouteMetadata({
64 params: {},
65 meta: route.name === 'sample-detail' ? { state: { sampleDetail: sample } } : {},
66 ...route
67 } as never)
68 );
69 }
70
71 function findMeta(
72 head: ReturnType<typeof buildRouteHead>,

Callers 1

seo.test.tsFile · 0.85

Calls 2

buildRouteHeadFunction · 0.90
resolveRouteMetadataFunction · 0.90

Tested by

no test coverage detected