Skip to content

Commit 2fb4301

Browse files
authored
About Component updated to meet test cases
1 parent 66766eb commit 2fb4301

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

src/app/modules/about/about.component.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ import { IAboutService } from './iabout.service';
77
styleUrls: ['./about.component.scss']
88
})
99
export class AboutComponent implements OnInit {
10-
11-
email: string;
1210

13-
constructor(private aboutService: IAboutService) {}
11+
email: string;
1412

15-
ngOnInit(): void {
16-
this.email = this.aboutService.getContactEmail();
17-
}
18-
}
13+
constructor(private aboutService: IAboutService) { }
14+
15+
ngOnInit(): void {
16+
this.email = this.aboutService.getContactEmail();
17+
}
18+
19+
runMe(): void {
20+
this.email = 'dummy@example.com';
21+
}
22+
}

0 commit comments

Comments
 (0)