(name: string, body = '', template = '<p>x</p>')
| 34 | } |
| 35 | |
| 36 | const angularComponent = (name: string, body = '', template = '<p>x</p>') => `import { Component } from '@angular/core'; |
| 37 | import { Router } from '@angular/router'; |
| 38 | @Component({ selector: 'app-x', template: '${template}' }) |
| 39 | export class ${name} { |
| 40 | constructor(private readonly router: Router) {} |
| 41 | ${body} |
| 42 | } |
| 43 | `; |
| 44 | |
| 45 | const CASES: Case[] = [ |
| 46 | { |
no outgoing calls
no test coverage detected