(name: string, selector: string, template: string, body = '')
| 121 | }); |
| 122 | |
| 123 | const component = (name: string, selector: string, template: string, body = '') => `import { Component } from '@angular/core'; |
| 124 | import { Router } from '@angular/router'; |
| 125 | @Component({ |
| 126 | selector: '${selector}', |
| 127 | ${template.startsWith('./') ? `templateUrl: '${template}'` : `template: \`${template}\``}, |
| 128 | }) |
| 129 | export class ${name} { |
| 130 | constructor(private readonly router: Router) {} |
| 131 | ${body} |
| 132 | } |
| 133 | `; |
| 134 | |
| 135 | describe('an Angular app, indexed', () => { |
| 136 | let cg: CodeGraph; |
no outgoing calls
no test coverage detected