From 1e6dfe05bb6965774575a7617d5aedf17ee8f1cb Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 18 Jul 2022 11:56:15 +0530 Subject: [PATCH 1/2] remove view property --- 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); }); From b6389b1d0e2d62926986071a632f0682bd65bb01 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 18 Jul 2022 12:25:03 +0530 Subject: [PATCH 2/2] run CI