diff --git a/packages/mui-material/src/Snackbar/Snackbar.test.js b/packages/mui-material/src/Snackbar/Snackbar.test.js index 137e561e076778..f074f3ae274d60 100644 --- a/packages/mui-material/src/Snackbar/Snackbar.test.js +++ b/packages/mui-material/src/Snackbar/Snackbar.test.js @@ -43,7 +43,7 @@ describe('', () => { const handleClose = spy(); render(); - const event = new window.Event('click', { view: window, bubbles: true, cancelable: true }); + const event = new window.Event('click', { bubbles: true, cancelable: true }); document.body.dispatchEvent(event); expect(handleClose.callCount).to.equal(1); @@ -437,7 +437,6 @@ describe('', () => { act(() => { const bEvent = new window.Event('blur', { - view: window, bubbles: false, cancelable: false, }); @@ -452,7 +451,6 @@ describe('', () => { act(() => { const fEvent = new window.Event('focus', { - view: window, bubbles: false, cancelable: false, }); @@ -481,7 +479,7 @@ describe('', () => { ); act(() => { - const event = new window.Event('blur', { view: window, bubbles: false, cancelable: false }); + const event = new window.Event('blur', { bubbles: false, cancelable: false }); window.dispatchEvent(event); });