| 89 | |
| 90 | test('should support required signal input', async () => { |
| 91 | @Component({ |
| 92 | standalone: true, |
| 93 | template: `{{ call }} - {{ lazySignal.data() }}`, |
| 94 | changeDetection: ChangeDetectionStrategy.OnPush, |
| 95 | }) |
| 96 | class Test { |
| 97 | readonly title = input.required<string>() |
| 98 | call = 0 |
| 99 | |
| 100 | lazySignal = lazyInit(() => { |
| 101 | this.call++ |
| 102 | return { |
| 103 | data: computed(() => this.title()), |
| 104 | } |
| 105 | }) |
| 106 | } |
| 107 | |
| 108 | const fixture = TestBed.createComponent(Test) |
| 109 |
nothing calls this directly
no test coverage detected
searching dependent graphs…