Skip to content

Commit

Permalink
docs(store): change alert to mention auto cleanup (#2132)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored and brandonroberts committed Oct 1, 2019
1 parent 2964e2b commit d560640
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ describe('Auth Guard', () => {

expect(guard.canActivate()).toBeObservable(expected);
});

afterAll(() => store.resetSelectors());
});
2 changes: 1 addition & 1 deletion projects/ngrx.io/content/guide/store/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ In this example, we mock the `getLoggedIn` selector by using `overrideSelector`,

<div class="alert is-helpful">

**Note:** Reset overridden selectors using the `MockStore.resetSelectors()` method to prevent other tests from using the overridden selector value. This is shown in the above example.
**Note:** `MockStore` will reset all of the mocked selectors after each test (in the `afterEach()` hook) by calling the `MockStore.resetSelectors()` method.

</div>

Expand Down

0 comments on commit d560640

Please sign in to comment.