Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

style(web): format webhook parity regression

pulse-triage[bot]b8257351733d
diff --git a/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx b/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx
index 0aee91bec6..5498be0756 100644
--- a/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx
+++ b/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx
@@ -1590,17 +1590,29 @@ describe('webhook test/save parity', () => {
const onTest = vi.fn();
const onAdd = vi.fn();
const state = useWebhookConfigState({
- webhooks: [], onTest, onAdd, onUpdate: vi.fn(), onDelete: vi.fn(),
+ webhooks: [],
+ onTest,
+ onAdd,
+ onUpdate: vi.fn(),
+ onDelete: vi.fn(),
});
state.openAddForm();
- state.setFormData((data) => ({ ...data, name: 'Example', url: 'https://example.invalid', service: 'pushover' }));
+ state.setFormData((data) => ({
+ ...data,
+ name: 'Example',
+ url: 'https://example.invalid',
+ service: 'pushover',
+ }));
for (const [index, key] of ['app_token', 'user_token'].entries()) {
state.addCustomFieldInput();
state.updateCustomFieldInput(index, { key, value: `synthetic-${index}` });
}
state.testWebhookForm();
state.saveWebhook();
- expect(onAdd.mock.calls[0][0].customFields).toEqual({ token: 'synthetic-0', user: 'synthetic-1' });
+ expect(onAdd.mock.calls[0][0].customFields).toEqual({
+ token: 'synthetic-0',
+ user: 'synthetic-1',
+ });
expect(onTest.mock.calls[0][1].customFields).toEqual(onAdd.mock.calls[0][0].customFields);
} finally {
dispose();