Closed intellix closed 7 years ago
Pick up v0.11.2
The reason ngOnInit is ignored is because it doesn't call a public method (only a private one).
ngOnInit() {
this.createForm();
this.doSomething();
}
private createForm() {
this.form = this.fb.group({});
}
doSomething() {
}
generates:
ngOnInit() {
this.createForm();
this.doSomething();
}
private createForm() {
this.form = this.fb.group({});
}
doSomething() {
}
Ran against a form component with a private method and realised SimonTest generates method calls against privates, which is impossible. Typically I'm testing private methods indirectly. I also noticed that ngOnInit tests weren't generated.
Generates: