Skip to content

Commit

Permalink
Fix a newly firing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Feb 14, 2019
1 parent 6f44db2 commit 9b89187
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -454,7 +454,9 @@ describe('ReactHooksWithNoopRenderer', () => {

// Test that it works on update, too. This time the log is a bit different
// because we started with reducerB instead of reducerA.
counter.current.dispatch('reset');
ReactNoop.act(() => {
counter.current.dispatch('reset');
});
ReactNoop.render(<Counter ref={counter} />);
expect(ReactNoop.flush()).toEqual([
'Render: 0',
Expand Down

0 comments on commit 9b89187

Please sign in to comment.