Files
certd/packages/core/pipeline/test/index.test.ts

17 lines
495 B
TypeScript
Raw Normal View History

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