Skip to content

Commit

Permalink
Mute console on error thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Mar 2, 2023
1 parent de2b8fc commit 744f655
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Outline.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ describe('Outline', () => {
});

it('throws an error when placed outside Document', () => {
muteConsole();

expect(() => render(<Outline />)).toThrow();

restoreConsole();
});
});

Expand Down

0 comments on commit 744f655

Please sign in to comment.