I have a component with a @Attribute decorator as parameter. I did a test on it but sonar tells me that my builder’s line is not 100% covered on the branch. It highlights me 'green' in yellow. I would have liked to know how to cover it
export class CompStatusColorComponent{
constructor(@Attribute('colorStatut') public colorStatut: string = 'green') {
this.colorStatut = colorStatut || 'green';
}
ngOnInit(): void {
}
}