MCPcopy Create free account
hub / github.com/TanStack/ai / renderInjectGeneration

Function renderInjectGeneration

packages/ai-angular/tests/inject-generation.test.ts:25–38  ·  view source on GitHub ↗
(options: any)

Source from the content-addressed store, hash-verified

23}
24
25function 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
40describe('injectGeneration', () => {
41 it('initializes idle with a fetcher and generates a result', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected