lundi 31 août 2020

Jest Angular test private method in ngAfterViewInit()

How would I need test a private method which in inside my ngAfterViewInit. I can't test selectUsers() directly since it is a private method.

ngAfterViewInit() {
    timer(0).subscribe(() => {
        this.selectUsers();
    });
}

private selectUsers() {
   # ...
}

Aucun commentaire:

Enregistrer un commentaire