| 36 | |
| 37 | describe('in component fixture', () => { |
| 38 | @Component({ |
| 39 | selector: 'app-test', |
| 40 | standalone: true, |
| 41 | template: '{{ proxy.number() }}', |
| 42 | changeDetection: ChangeDetectionStrategy.OnPush, |
| 43 | }) |
| 44 | class TestComponent { |
| 45 | number = input.required<number>() |
| 46 | obj = computed(() => ({ number: this.number() })) |
| 47 | proxy = signalProxy(this.obj, ['number']) |
| 48 | shortNumber = this.proxy.number |
| 49 | } |
| 50 | |
| 51 | beforeEach(() => { |
| 52 | TestBed.configureTestingModule({ |
nothing calls this directly
no test coverage detected