mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:11:23 +00:00
refactor(test): share gateway e2e registry helper
This commit is contained in:
17
src/gateway/server.e2e-registry-helpers.ts
Normal file
17
src/gateway/server.e2e-registry-helpers.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { PluginRegistry } from "../plugins/registry.js";
|
||||
|
||||
export const createRegistry = (channels: PluginRegistry["channels"]): PluginRegistry => ({
|
||||
plugins: [],
|
||||
tools: [],
|
||||
hooks: [],
|
||||
typedHooks: [],
|
||||
channels,
|
||||
providers: [],
|
||||
gatewayHandlers: {},
|
||||
httpHandlers: [],
|
||||
httpRoutes: [],
|
||||
cliRegistrars: [],
|
||||
services: [],
|
||||
commands: [],
|
||||
diagnostics: [],
|
||||
});
|
||||
Reference in New Issue
Block a user