(name: string)
| 205 | updatedAt: Date.now(), |
| 206 | }); |
| 207 | const appRef = (name: string) => ({ |
| 208 | fromNodeId: 'file:src/myapp.app.src', |
| 209 | referenceName: name, |
| 210 | referenceKind: 'imports' as const, |
| 211 | line: 6, |
| 212 | column: 0, |
| 213 | filePath: 'src/myapp.app.src', |
| 214 | language: 'erlang' as const, |
| 215 | }); |
| 216 | expect(matchReference(appRef('ssl'), context)).toBeNull(); |
| 217 | expect(matchReference(appRef('my_behaviour'), context)?.targetNodeId).toBe(behaviourModule.id); |
| 218 | }); |