mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-04 17:21:20 -07:00
Chore: homepage tests (#6278)
This commit is contained in:
13
src/widgets/glances/widget.test.js
Normal file
13
src/widgets/glances/widget.test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { expectWidgetConfigShape } from "test-utils/widget-config";
|
||||
|
||||
import widget from "./widget";
|
||||
|
||||
describe("glances widget config", () => {
|
||||
it("exports a valid widget config", () => {
|
||||
expectWidgetConfigShape(widget);
|
||||
expect(widget.allowedEndpoints?.test("3/quicklook")).toBe(true);
|
||||
expect(widget.allowedEndpoints?.test("unknown")).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user