@@ -55,7 +55,7 @@ describe('EventClient', () => {
55
55
const targetEmitSpy = vi . spyOn ( target , 'dispatchEvent' )
56
56
const targetListenSpy = vi . spyOn ( target , 'addEventListener' )
57
57
const targetRemoveSpy = vi . spyOn ( target , 'removeEventListener' )
58
- const cleanup = client . on ( 'test:event' , ( ) => { } )
58
+ const cleanup = client . on ( 'test:event' , ( ) => { } )
59
59
cleanup ( )
60
60
client . emit ( 'test:event' , { foo : 'bar' } )
61
61
expect ( targetEmitSpy ) . toHaveBeenCalledWith ( expect . any ( Event ) )
@@ -79,7 +79,7 @@ describe('EventClient', () => {
79
79
const targetEmitSpy = vi . spyOn ( target , 'dispatchEvent' )
80
80
const targetListenSpy = vi . spyOn ( target , 'addEventListener' )
81
81
const targetRemoveSpy = vi . spyOn ( target , 'removeEventListener' )
82
- const cleanup = client . on ( 'test:event' , ( ) => { } )
82
+ const cleanup = client . on ( 'test:event' , ( ) => { } )
83
83
cleanup ( )
84
84
client . emit ( 'test:event' , { foo : 'bar' } )
85
85
expect ( targetEmitSpy ) . toHaveBeenCalledWith ( expect . any ( Event ) )
@@ -102,7 +102,7 @@ describe('EventClient', () => {
102
102
} )
103
103
104
104
const eventBusSpy = vi . spyOn ( clientBusEmitTarget , 'addEventListener' )
105
- client . on ( 'event' , ( ) => { } )
105
+ client . on ( 'event' , ( ) => { } )
106
106
expect ( eventBusSpy ) . toHaveBeenCalledWith (
107
107
'test:event' ,
108
108
expect . any ( Function ) ,
@@ -195,8 +195,8 @@ describe('EventClient', () => {
195
195
} )
196
196
} )
197
197
198
- describe ( " queued events" , ( ) => {
199
- it ( " emits queued events when connected to the event bus" , async ( ) => {
198
+ describe ( ' queued events' , ( ) => {
199
+ it ( ' emits queued events when connected to the event bus' , async ( ) => {
200
200
bus . stop ( )
201
201
const client = new EventClient ( {
202
202
debug : false ,
@@ -208,7 +208,7 @@ describe('EventClient', () => {
208
208
209
209
bus . start ( )
210
210
// wait to connect to the bus
211
- await new Promise ( resolve => setTimeout ( resolve , 500 ) )
211
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 500 ) )
212
212
expect ( eventHandler ) . toHaveBeenCalledWith ( {
213
213
type : 'test:event' ,
214
214
payload : { foo : 'bar' } ,
0 commit comments