@@ -8,7 +8,7 @@ new ClientEventBus().start()
88const clientBusEmitTarget = window
99describe ( 'EventClient' , ( ) => {
1010 describe ( 'debug config' , ( ) => {
11- it ( 'should emit logs when debug set to true and have the correct plugin name' , async ( ) => {
11+ it ( 'should emit logs when debug set to true and have the correct plugin name' , ( ) => {
1212 const consoleSpy = vi . spyOn ( console , 'log' )
1313 new EventClient ( {
1414 debug : true ,
@@ -54,7 +54,7 @@ describe('EventClient', () => {
5454 const targetEmitSpy = vi . spyOn ( target , 'dispatchEvent' )
5555 const targetListenSpy = vi . spyOn ( target , 'addEventListener' )
5656 const targetRemoveSpy = vi . spyOn ( target , 'removeEventListener' )
57- const cleanup = client . on ( 'test:event' , ( ) => { } )
57+ const cleanup = client . on ( 'test:event' , ( ) => { } )
5858 cleanup ( )
5959 client . emit ( 'test:event' , { foo : 'bar' } )
6060 expect ( targetEmitSpy ) . toHaveBeenCalledWith ( expect . any ( Event ) )
@@ -78,7 +78,7 @@ describe('EventClient', () => {
7878 const targetEmitSpy = vi . spyOn ( target , 'dispatchEvent' )
7979 const targetListenSpy = vi . spyOn ( target , 'addEventListener' )
8080 const targetRemoveSpy = vi . spyOn ( target , 'removeEventListener' )
81- const cleanup = client . on ( 'test:event' , ( ) => { } )
81+ const cleanup = client . on ( 'test:event' , ( ) => { } )
8282 cleanup ( )
8383 client . emit ( 'test:event' , { foo : 'bar' } )
8484 expect ( targetEmitSpy ) . toHaveBeenCalledWith ( expect . any ( Event ) )
@@ -101,7 +101,7 @@ describe('EventClient', () => {
101101 } )
102102
103103 const eventBusSpy = vi . spyOn ( clientBusEmitTarget , 'addEventListener' )
104- client . on ( 'event' , ( ) => { } )
104+ client . on ( 'event' , ( ) => { } )
105105 expect ( eventBusSpy ) . toHaveBeenCalledWith (
106106 'test:event' ,
107107 expect . any ( Function ) ,
0 commit comments