@@ -27,7 +27,7 @@ describe("Event Preview Display", () => {
2727 beforeEach ( ( ) => {
2828 jest . clearAllMocks ( ) ;
2929 sessionStorage . clear ( ) ;
30- ( window as any ) . MAIL_SPA_URL = null ;
30+ window . MAIL_SPA_URL = null ;
3131 } ) ;
3232
3333 const preloadedState = {
@@ -598,7 +598,7 @@ describe("Event Preview Display", () => {
598598 } ) ;
599599 } ) ;
600600 it ( "properly render message button when MAIL_SPA_URL is not null and event has attendees" , ( ) => {
601- ( window as any ) . MAIL_SPA_URL = "test" ;
601+ window . MAIL_SPA_URL = "test" ;
602602 renderWithProviders (
603603 < EventPreviewModal
604604 open = { true }
@@ -612,7 +612,7 @@ describe("Event Preview Display", () => {
612612 expect ( screen . getByText ( "eventPreview.emailAttendees" ) ) . toBeInTheDocument ( ) ;
613613 } ) ;
614614 it ( "doesnt render message button when MAIL_SPA_URL is not null and event has no attendees" , ( ) => {
615- ( window as any ) . MAIL_SPA_URL = "test" ;
615+ window . MAIL_SPA_URL = "test" ;
616616 renderWithProviders (
617617 < EventPreviewModal
618618 open = { true }
@@ -637,7 +637,7 @@ describe("Event Preview Display", () => {
637637 expect ( screen . queryByTestId ( "EmailIcon" ) ) . not . toBeInTheDocument ( ) ;
638638 } ) ;
639639 it ( "message button opens url with attendees as uri and title as subject" , ( ) => {
640- ( window as any ) . MAIL_SPA_URL = "test" ;
640+ window . MAIL_SPA_URL = "test" ;
641641 const mockOpen = jest . fn ( ) ;
642642 window . open = mockOpen ;
643643
@@ -669,7 +669,7 @@ describe("Event Preview Display", () => {
669669 } ) ;
670670
671671 it ( "message button encodes special characters in event title correctly" , ( ) => {
672- ( window as any ) . MAIL_SPA_URL = "test" ;
672+ window . MAIL_SPA_URL = "test" ;
673673 const mockOpen = jest . fn ( ) ;
674674 window . open = mockOpen ;
675675
@@ -952,7 +952,7 @@ describe("Event Preview Display", () => {
952952
953953 beforeEach ( ( ) => {
954954 jest . clearAllMocks ( ) ;
955- ( window as any ) . MAIL_SPA_URL = null ;
955+ window . MAIL_SPA_URL = null ;
956956 } ) ;
957957
958958 const createStateWithAttendees = ( attendees : any [ ] ) => ( {
0 commit comments