| 873 | |
| 874 | it('should name the signal when writing within computed', async () => { |
| 875 | @Component({ |
| 876 | selector: 'write-in-computed', |
| 877 | template: '{{comp()}}', |
| 878 | }) |
| 879 | class WriteInComputed { |
| 880 | sig = signal(0, {debugName: 'count'}); |
| 881 | comp = computed(() => this.sig.set(1)); |
| 882 | } |
| 883 | |
| 884 | const fixture = TestBed.createComponent(WriteInComputed); |
| 885 |