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.

Finish prettier sweep: two straggler test files

rcourtman3a6a6f6825eb
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 90e242b3d5..62a6173d31 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -1060,7 +1060,9 @@ describe('settings architecture guardrails', () => {
'Manage appearance, layout, and default monitoring cadence.',
);
expect(normalize(generalSettingsPanelSource)).not.toContain('Dashboard, Infrastructure');
- expect(normalize(networkBoundarySettingsSectionSource)).toContain('Pulse URL for Notifications');
+ expect(normalize(networkBoundarySettingsSectionSource)).toContain(
+ 'Pulse URL for Notifications',
+ );
expect(normalize(networkBoundarySettingsSectionSource)).not.toContain(
'Dashboard URL for Notifications',
);
diff --git a/frontend-modern/src/features/alerts/__tests__/helpers.branchcov2.test.ts b/frontend-modern/src/features/alerts/__tests__/helpers.branchcov2.test.ts
index 04cadfdda2..814f14dc5c 100644
--- a/frontend-modern/src/features/alerts/__tests__/helpers.branchcov2.test.ts
+++ b/frontend-modern/src/features/alerts/__tests__/helpers.branchcov2.test.ts
@@ -74,21 +74,17 @@ describe('alerts helpers — branch coverage (batch 2)', () => {
});
it('falls back to UTC when the resolved timezone is empty', () => {
- const spy = vi
- .spyOn(Intl, 'DateTimeFormat')
- .mockImplementation((() => ({
- resolvedOptions: () => ({ timeZone: '' }),
- })) as unknown as typeof Intl.DateTimeFormat);
+ const spy = vi.spyOn(Intl, 'DateTimeFormat').mockImplementation((() => ({
+ resolvedOptions: () => ({ timeZone: '' }),
+ })) as unknown as typeof Intl.DateTimeFormat);
expect(getLocalTimezone()).toBe('UTC');
spy.mockRestore();
});
it('returns the resolved IANA timezone when one is available', () => {
- const spy = vi
- .spyOn(Intl, 'DateTimeFormat')
- .mockImplementation((() => ({
- resolvedOptions: () => ({ timeZone: 'Australia/Sydney' }),
- })) as unknown as typeof Intl.DateTimeFormat);
+ const spy = vi.spyOn(Intl, 'DateTimeFormat').mockImplementation((() => ({
+ resolvedOptions: () => ({ timeZone: 'Australia/Sydney' }),
+ })) as unknown as typeof Intl.DateTimeFormat);
expect(getLocalTimezone()).toBe('Australia/Sydney');
spy.mockRestore();
});