Skip to content

Commit

Permalink
Fix getSelectorStub example in docs (angular-redux#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasleblanc authored and e-schultz committed Aug 24, 2017
1 parent 2cb2277 commit c9dc1e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions articles/intro-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ describe('MyComponent', () => {
// Drive those values through our stub.
expectedValues.forEach(value => countStub.next(value));

// toArray only deals with completed streams
countStub.complete();

// Make sure MyComponent's selected count$ variable receives these values.
componentUnderTest.count$
.toArray()
Expand Down

0 comments on commit c9dc1e6

Please sign in to comment.