mirror of https://github.com/openclaw/openclaw.git
fix: add missing events property to bluebubbles PluginRuntime mock
This commit is contained in:
parent
b91a22a3fb
commit
53ada1e9b9
|
|
@ -274,6 +274,12 @@ function createMockRuntime(): PluginRuntime {
|
|||
imessage: {} as PluginRuntime["channel"]["imessage"],
|
||||
whatsapp: {} as PluginRuntime["channel"]["whatsapp"],
|
||||
},
|
||||
events: {
|
||||
onAgentEvent: vi.fn(() => () => {}) as unknown as PluginRuntime["events"]["onAgentEvent"],
|
||||
onSessionTranscriptUpdate: vi.fn(
|
||||
() => () => {},
|
||||
) as unknown as PluginRuntime["events"]["onSessionTranscriptUpdate"],
|
||||
},
|
||||
logging: {
|
||||
shouldLogVerbose: vi.fn(
|
||||
() => false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue