(id: string, name = id)
| 20 | import { Node, Edge } from '../src/types'; |
| 21 | |
| 22 | function makeNode(id: string, name = id): Node { |
| 23 | return { |
| 24 | id, |
| 25 | kind: 'function', |
| 26 | name, |
| 27 | qualifiedName: name, |
| 28 | filePath: 'a.ts', |
| 29 | language: 'typescript', |
| 30 | startLine: 1, |
| 31 | endLine: 1, |
| 32 | startColumn: 0, |
| 33 | endColumn: 0, |
| 34 | updatedAt: Date.now(), |
| 35 | }; |
| 36 | } |
| 37 | |
| 38 | describe('getNodesByIds (batch lookup)', () => { |
| 39 | let dir: string; |