mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 17:00:51 +08:00
test: add widget config tests (batch 1)
This commit is contained in:
13
src/widgets/apcups/widget.test.js
Normal file
13
src/widgets/apcups/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("apcups widget config", () => {
|
||||
it("exports a valid widget config", () => {
|
||||
expectWidgetConfigShape(widget);
|
||||
// apcups talks TCP directly, so it does not use an `{url}/...` API template.
|
||||
expect(widget.api).toBeUndefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user