ngrx effect unit test mulitple actions in mergemap : <p>I am using ngrx library and have an effect like this</p>

<pre><code>@Effect()
  loadCollection$: Observable&lt;Action&gt; = this.actions$
    .ofType(authAction.GET_USER)
    .startWith(new authAction.GetUserAction()) // call on app load
    .switchMap(() =&gt;
      this.service.getUser()
        .mergeMap((user: User) =&gt; [
          new authAction.GetUserCompleteAction(user),
          new navigationAction.GetLinksCompleteAction(user.role)
        ])
    );
</code></pre>

<p>I am writing spec for it and it looks like this </p>

<pre><code> actions = new ReplaySubject(2);
        actions.next(new auth.GetUserAction());

        effects.loadCollection$.subscribe(result =&gt; {
            expect(service.getUser).toHaveBeenCalled();
            expect(result).toEqual(new navigation.GetLinksCompleteAction('test'));  --&gt; this line fails
        });
</code></pre>

<p>How can I expect that multiple actions were called in the merge map.</p>
