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 d42f79b commit d14ccb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Outline.spec.jsx
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 d14ccb7

Please sign in to comment.