refactor: plugins

This commit is contained in:
xiaojunnuo
2022-11-08 22:10:42 +08:00
parent d66bc33761
commit b04d4cb5c5
113 changed files with 2815 additions and 1 deletions
@@ -0,0 +1,11 @@
import { expect } from "chai";
import "mocha";
import { EchoPlugin } from "../src/plugin";
describe("task_plugin", function () {
it("#taskplugin", function () {
const echoPlugin = new EchoPlugin();
const define = echoPlugin.define;
echoPlugin.execute({ context: {}, props: { test: 111 } });
expect(define.name).eq("EchoPlugin");
});
});