mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-02 08:12:15 -07:00
14 lines
419 B
JavaScript
14 lines
419 B
JavaScript
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);
|
|
});
|
|
});
|