mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-27 00:06:13 +00:00
fix(frontend): resolve TypeScript errors causing CI failures
- Remove unused setUseRelativeTime in UnifiedBackups.tsx (TS6133) - Remove unused testing-library imports in PBSEnhancementBanner.test.ts (TS6133) - Fix type comparison in test by using union type instead of 'as const' (TS2367)
This commit is contained in:
parent
5c600912f7
commit
83790a4bfc
2 changed files with 4 additions and 4 deletions
|
|
@ -158,7 +158,7 @@ const UnifiedBackups: Component = () => {
|
|||
}
|
||||
});
|
||||
|
||||
const [useRelativeTime, setUseRelativeTime] = createLocalStorageBooleanSignal(
|
||||
const [useRelativeTime] = createLocalStorageBooleanSignal(
|
||||
STORAGE_KEYS.BACKUPS_USE_RELATIVE_TIME,
|
||||
false, // Default to absolute time
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
||||
import { render, screen, waitFor, fireEvent, cleanup } from '@solidjs/testing-library';
|
||||
import { cleanup } from '@solidjs/testing-library';
|
||||
import { createStore } from 'solid-js/store';
|
||||
|
||||
// We need to test the PBS enhancement banner logic
|
||||
|
|
@ -197,8 +197,8 @@ describe('PBS Backup Data Source Indicator', () => {
|
|||
});
|
||||
|
||||
it('should NOT show "via PVE" for non-PBS backups', () => {
|
||||
const backup = {
|
||||
backupType: 'local' as const,
|
||||
const backup: { backupType: 'local' | 'remote'; storage: string; datastore: null } = {
|
||||
backupType: 'local',
|
||||
storage: 'local-lvm',
|
||||
datastore: null,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue