Skip to content

Commit f62bdf9

Browse files
committed
chore: remove function async
1 parent 52df1b9 commit f62bdf9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.changeset/eleven-garlics-work.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@tanstack/devtools-event-client': patch
3+
'@tanstack/devtools-event-bus': patch
4+
---
5+
6+
add queued events to event bus

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ new ClientEventBus().start()
88
const clientBusEmitTarget = window
99
describe('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

Comments
 (0)