(
head: ReturnType<typeof buildRouteHead>,
key: 'name' | 'property',
value: string
)
| 69 | } |
| 70 | |
| 71 | function findMeta( |
| 72 | head: ReturnType<typeof buildRouteHead>, |
| 73 | key: 'name' | 'property', |
| 74 | value: string |
| 75 | ) { |
| 76 | return head.meta.find((entry) => entry[key] === value); |
| 77 | } |
| 78 | |
| 79 | it('applies catalog metadata', () => { |
| 80 | const head = headFor({ name: 'catalog' }); |