Skip to content

Commit 8a4bfae

Browse files
ci: apply automated fixes
1 parent 914e994 commit 8a4bfae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/event-bus-client/tests/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('EventClient', () => {
5555
const targetEmitSpy = vi.spyOn(target, 'dispatchEvent')
5656
const targetListenSpy = vi.spyOn(target, 'addEventListener')
5757
const targetRemoveSpy = vi.spyOn(target, 'removeEventListener')
58-
const cleanup = client.on('test:event', () => { })
58+
const cleanup = client.on('test:event', () => {})
5959
cleanup()
6060
client.emit('test:event', { foo: 'bar' })
6161
expect(targetEmitSpy).toHaveBeenCalledWith(expect.any(Event))
@@ -79,7 +79,7 @@ describe('EventClient', () => {
7979
const targetEmitSpy = vi.spyOn(target, 'dispatchEvent')
8080
const targetListenSpy = vi.spyOn(target, 'addEventListener')
8181
const targetRemoveSpy = vi.spyOn(target, 'removeEventListener')
82-
const cleanup = client.on('test:event', () => { })
82+
const cleanup = client.on('test:event', () => {})
8383
cleanup()
8484
client.emit('test:event', { foo: 'bar' })
8585
expect(targetEmitSpy).toHaveBeenCalledWith(expect.any(Event))
@@ -102,7 +102,7 @@ describe('EventClient', () => {
102102
})
103103

104104
const eventBusSpy = vi.spyOn(clientBusEmitTarget, 'addEventListener')
105-
client.on('event', () => { })
105+
client.on('event', () => {})
106106
expect(eventBusSpy).toHaveBeenCalledWith(
107107
'test:event',
108108
expect.any(Function),
@@ -195,8 +195,8 @@ describe('EventClient', () => {
195195
})
196196
})
197197

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 () => {
200200
bus.stop()
201201
const client = new EventClient({
202202
debug: false,
@@ -208,7 +208,7 @@ describe('EventClient', () => {
208208

209209
bus.start()
210210
// wait to connect to the bus
211-
await new Promise(resolve => setTimeout(resolve, 500))
211+
await new Promise((resolve) => setTimeout(resolve, 500))
212212
expect(eventHandler).toHaveBeenCalledWith({
213213
type: 'test:event',
214214
payload: { foo: 'bar' },

0 commit comments

Comments
 (0)