(name: string, selector: string, template: string, body = '')
| 200 | }); |
| 201 | |
| 202 | const component = (name: string, selector: string, template: string, body = '') => `import { Component } from '@angular/core'; |
| 203 | import { Router } from '@angular/router'; |
| 204 | @Component({ |
| 205 | selector: '${selector}', |
| 206 | ${template.startsWith('./') ? `templateUrl: '${template}'` : `template: \`${template}\``}, |
| 207 | }) |
| 208 | export class ${name} { |
| 209 | constructor(private readonly router: Router) {} |
| 210 | ${body} |
| 211 | } |
| 212 | `; |
| 213 | |
| 214 | describe('an Angular app, indexed', () => { |
| 215 | let cg: CodeGraph; |
no outgoing calls
no test coverage detected