From f72171d6cb7d16cecc7f1403dd19260752e2dc01 Mon Sep 17 00:00:00 2001 From: Zeeshan Tamboli Date: Thu, 21 Jul 2022 10:38:07 +0530 Subject: [PATCH] [test] Remove `view` option from Event in Snackbar tests (#33555) * remove view property * run CI --- packages/mui-material/src/Snackbar/Snackbar.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); });