diff --git a/src/Outline.spec.jsx b/src/Outline.spec.jsx index e3a2f25d8..38cd23c17 100644 --- a/src/Outline.spec.jsx +++ b/src/Outline.spec.jsx @@ -68,7 +68,11 @@ describe('Outline', () => { }); it('throws an error when placed outside Document', () => { + muteConsole(); + expect(() => render()).toThrow(); + + restoreConsole(); }); });