fix(desktop): import GatewayEvent type in the background.complete test

The salvaged test imported RpcEvent from @/types/hermes; main's event
type lives in @hermes/shared as GatewayEvent.
This commit is contained in:
Hermes Agent
2026-09-25 11:36:05 -05:00
committed by brooklyn!
parent 1f20117b33
commit 2658607d54

View File

@@ -1,7 +1,7 @@
import { act, cleanup } from '@testing-library/react'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import type { RpcEvent } from '@/types/hermes'
import type { GatewayEvent } from '@hermes/shared'
import { type MessageStreamHarness, renderMessageStream } from './test-harness'
@@ -14,7 +14,7 @@ function mountStream() {
stream = renderMessageStream(SID)
}
function emit(type: RpcEvent['type'], payload: RpcEvent['payload'] = {}, sessionId = SID) {
function emit(type: GatewayEvent['type'], payload: GatewayEvent['payload'] = {}, sessionId = SID) {
act(() => stream.handleEvent({ payload, session_id: sessionId, type }))
}