(defs: Record<string, string[]>)
| 387 | const SHARED = [...INDEX, REGISTRY, HELPER]; |
| 388 | /** Records every symbol the lookup is asked about. */ |
| 389 | const lookup = (defs: Record<string, string[]>) => { |
| 390 | const asked: string[] = []; |
| 391 | return { |
| 392 | asked, |
| 393 | symbolFiles: (symbol: string) => { asked.push(symbol); return defs[symbol] ?? []; }, |
| 394 | }; |
| 395 | }; |
| 396 | |
| 397 | it('pins only the match defining a named symbol and reports the one set aside', () => { |
| 398 | const l = lookup({ clampedInt: [REGISTRY], cursorStyleToString: [REGISTRY] }); |
no test coverage detected