mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-15 00:25:51 -07:00
342afa2215
Lint / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { expectWidgetConfigShape } from "test-utils/widget-config";
|
|
|
|
import widget from "./widget";
|
|
|
|
describe("pulse widget config", () => {
|
|
it("exports a valid widget config", () => {
|
|
expectWidgetConfigShape(widget);
|
|
});
|
|
|
|
it("maps the Pulse v6 summary endpoint", () => {
|
|
expect(widget.mappings.summary.endpoint).toBe("api/state/summary");
|
|
});
|
|
});
|