From e80d1b7748dcc25f4b077b86f8888d96b99ef298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E8=8F=9C?= <1659488338@qq.com> Date: Thu, 11 Jul 2024 22:31:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20test=E7=B1=BB=E5=9E=8B=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/plugins/test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/plugins/test.ts b/test/plugins/test.ts index bea24c5c..d7465ff6 100644 --- a/test/plugins/test.ts +++ b/test/plugins/test.ts @@ -1,7 +1,7 @@ import { Plugin, Message } from 'zhin'; import '@zhinjs/plugin-sandbox'; import * as path from 'path'; -import type {} from '@zhinjs/client'; +import type {} from '@zhinjs/web'; const test = new Plugin('测试插件'); // 定义插件 test.required('functionManager', 'component'); // 声明插件必须依赖的服务 @@ -59,9 +59,9 @@ test }); return `inputResult:${input} ${typeof input}`; }); -test.required('addEntry'); +test.required('web'); test.mounted(() => { - test.addEntry(path.resolve(__dirname, '../client/index.ts')); + test.web.addEntry(path.resolve(__dirname, '../client/index.ts')); test.component({ name: 'test2', render(_, context) {