mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-17 09:35:50 -07:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 864d6c8e41 | |||
| f7666df9d8 |
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: crowdin action
|
||||
uses: crowdin/github-action@71fdb8814261dd703be4ca7c6450d21b1868da4b # v3.0.1
|
||||
uses: crowdin/github-action@0d5670f539973aea2f01abce61a8989934df0025 # v3.0.2
|
||||
with:
|
||||
upload_translations: false
|
||||
download_translations: true
|
||||
|
||||
@@ -10,7 +10,8 @@ const widget = {
|
||||
},
|
||||
"nodes/localhost/tasks": {
|
||||
endpoint: "nodes/localhost/tasks",
|
||||
params: ["errors", "limit", "since"],
|
||||
params: ["errors", "limit"],
|
||||
optionalParams: ["since"],
|
||||
},
|
||||
"nodes/localhost/status": {
|
||||
endpoint: "nodes/localhost/status",
|
||||
|
||||
@@ -9,7 +9,8 @@ describe("proxmoxbackupserver widget config", () => {
|
||||
expectWidgetConfigShape(widget);
|
||||
});
|
||||
|
||||
it("requires failed task query params for the tasks endpoint", () => {
|
||||
expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit", "since"]);
|
||||
it("requires failed task query params for the tasks endpoint, with since optional", () => {
|
||||
expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit"]);
|
||||
expect(widget.mappings["nodes/localhost/tasks"].optionalParams).toEqual(["since"]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user