(url, entries)
| 712 | describe('specHref (spec-definition links from the webref dfns index)', () => { |
| 713 | // Shape mirrors a real webref ed/dfns/<spec>.json: { spec, dfns: [{ type, linkingText, href }] }. |
| 714 | const dfnsDoc = (url, entries) => ({ |
| 715 | spec: { url }, |
| 716 | dfns: entries.map(([type, name, href]) => ({ type, linkingText: [name], href })), |
| 717 | }) |
| 718 | |
| 719 | it('maps cddl-type entries by name, ignoring keys/values/other dfn types', () => { |
| 720 | const hrefs = buildSpecHrefs([ |
no test coverage detected