0

So I faced a problem when trying to test combineLatest result I am facing an error.

        const e1 = hot('^--a--|');
        const e2 = hot('^---b-|');
   
        const expected = cold('--(ab)-|');

        expect(combineLatest([e1, e2])).toBeObservable(expected);

I am not sure about expected value, I know that combineLatest will return [a,b] but don't know how to write it properly, any clues?

Kraken
  • 1,905
  • 12
  • 22

0 Answers0