mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 07:35:24 +00:00
feat: finish the host-metrics plugin, move host status into core (B16)
This commit is contained in:
1 parent
14eb558b85
commit
0a3f05d99d
308 files changed
+53073
-8985
No files matched your search
@@ -38,6 +38,18 @@ describe(`${manifest.id} activate`, () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("fills core's metric slots and offers disk usage to other plugins", async () => {
|
||||
rendered = await renderWithApp(plugin, { manifest, locales });
|
||||
expect(rendered.registered.slot("dashboard.hostMetrics")).toEqual([
|
||||
"host-metrics.dashboardHost",
|
||||
]);
|
||||
expect(rendered.registered.slot("homepage.hostMetrics")).toEqual([
|
||||
"host-metrics.homepageHost",
|
||||
]);
|
||||
expect(rendered.registered.actions()).toContain("host-metrics.disk");
|
||||
expect(rendered.registered.hostEditorSections()).toEqual(["host-metrics"]);
|
||||
});
|
||||
|
||||
it("removes everything it registered on deactivate", async () => {
|
||||
const app = await renderWithApp(plugin, { manifest, locales });
|
||||
await app.deactivate();
|
||||
|
||||
Reference in new issue
Block a user