From 732116f53a4583073c94963fbd32622606e8ff21 Mon Sep 17 00:00:00 2001 From: Mentlegen <9807008+gentlementlegen@users.noreply.github.com> Date: Mon, 21 Oct 2024 20:27:18 +0900 Subject: [PATCH] chore: remove deprecated express_plugin mock Removed the outdated express_plugin mock file from tests. --- tests/__mocks__/http/express_plugin.ts | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 tests/__mocks__/http/express_plugin.ts diff --git a/tests/__mocks__/http/express_plugin.ts b/tests/__mocks__/http/express_plugin.ts deleted file mode 100644 index d829f8c..0000000 --- a/tests/__mocks__/http/express_plugin.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { serve } from "@hono/node-server"; -import { createPlugin } from "@ubiquity-os/ubiquity-os-kernel"; -import { LOG_LEVEL } from "@ubiquity-os/ubiquity-os-logger"; -import manifest from "../../../manifest.json"; -import { run } from "../../../src/run"; -import { Env, envSchema, PluginSettings, pluginSettingsSchema, SupportedEvents } from "../../../src/types/plugin-input"; - -createPlugin( - async (context) => { - const result = await run(context); - console.log(JSON.stringify(result)); - return result; - }, - //@ts-expect-error err - manifest, - { - envSchema: envSchema, - settingsSchema: pluginSettingsSchema, - logLevel: LOG_LEVEL.DEBUG, - } -).then((server) => { - console.log("Server starting..."); - return serve(server); -});