2022-10-26 01:02:47 +00:00
|
|
|
import { expect } from "chai";
|
|
|
|
import "mocha";
|
2022-11-07 15:31:20 +00:00
|
|
|
import { EchoPlugin } from "./echo-plugin";
|
2022-10-26 01:02:47 +00:00
|
|
|
describe("task_plugin", function () {
|
|
|
|
it("#taskplugin", function () {
|
2023-01-07 15:22:02 +00:00
|
|
|
console.log("before new plugin");
|
2022-10-26 15:29:10 +00:00
|
|
|
const echoPlugin = new EchoPlugin();
|
2023-01-07 15:22:02 +00:00
|
|
|
console.log("before set property", echoPlugin);
|
|
|
|
echoPlugin.cert = { test: 1 };
|
|
|
|
console.log("before execute");
|
2022-11-07 15:31:20 +00:00
|
|
|
// @ts-ignore
|
2023-01-07 15:22:02 +00:00
|
|
|
echoPlugin.execute();
|
|
|
|
console.log("after execute");
|
2023-05-08 03:19:19 +00:00
|
|
|
expect(echoPlugin.cert.test).eq(1);
|
2022-10-26 01:02:47 +00:00
|
|
|
});
|
|
|
|
});
|