Adding bluetooth radio toggle to Controller. Writing controller.yaml to media drive on startup, if it doesn't exist.

This commit is contained in:
Roland 2026-03-28 10:09:58 -06:00
parent 9e80683b9a
commit 1c55745884
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
13 changed files with 624 additions and 7 deletions

View file

@ -40,6 +40,7 @@ jest.mock('../../api/controller', () => ({
// Mock useDockerized hook
jest.mock('../../hooks/customHooks', () => ({
useDockerized: jest.fn().mockReturnValue(false),
useBluetooth: jest.fn().mockReturnValue({on: false, setBluetooth: jest.fn()}),
useHotspot: jest.fn().mockReturnValue({on: true, setHotspot: jest.fn()}),
useThrottle: jest.fn().mockReturnValue({on: false, setThrottle: jest.fn()}),
}));
@ -49,6 +50,7 @@ jest.mock('../Common', () => {
const actual = jest.requireActual('../Common');
return {
...actual,
BluetoothToggle: () => <div data-testid="bluetooth-toggle">BluetoothToggle</div>,
HotspotToggle: () => <div data-testid="hotspot-toggle">HotspotToggle</div>,
ThrottleToggle: () => <div data-testid="throttle-toggle">ThrottleToggle</div>,
Toggle: ({label, checked, onChange}) => (