(options: any)
| 23 | } |
| 24 | |
| 25 | function renderInjectGeneration(options: any) { |
| 26 | @Component({ standalone: true, template: '' }) |
| 27 | class Host { |
| 28 | gen = injectGeneration(options) |
| 29 | } |
| 30 | const fixture = TestBed.createComponent(Host) |
| 31 | fixture.detectChanges() |
| 32 | return { |
| 33 | get result() { |
| 34 | return fixture.componentInstance.gen |
| 35 | }, |
| 36 | flush: () => fixture.detectChanges(), |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | describe('injectGeneration', () => { |
| 41 | it('initializes idle with a fetcher and generates a result', async () => { |
no outgoing calls
no test coverage detected