1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular - How to test a method that returns an Observable<boolean>

Discussão em 'Angular' iniciado por Nuno Oliveira, Setembro 24, 2024.

  1. I have a method that returns an Observable :

    public hasFiltersSelected(): Observable<boolean> {
    return this.store.pipe(
    select(selectSelectedFilters),
    map(obj => Object.keys(obj).length > 0)
    );
    }


    Does anyone know how I should do the unit testing for this one?

    Continue reading...

Compartilhe esta Página