The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(test): update config test to match new default value
Steven Enamakel863174824b4d
diff --git a/app/src/utils/tauriCommands/config.test.ts b/app/src/utils/tauriCommands/config.test.tsindex 84afbc7fba..03b2ba7dc5 100644--- a/app/src/utils/tauriCommands/config.test.ts+++ b/app/src/utils/tauriCommands/config.test.ts@@ -27,12 +27,11 @@ describe('tauriCommands/config', () => {});describe('openhumanUpdateLocalAiSettings', () => {- test('throws when not running in Tauri', async () => {+ test('calls core RPC when not running in Tauri', async () => {mockIsTauri.mockReturnValue(false);- await expect(openhumanUpdateLocalAiSettings({ runtime_enabled: true })).rejects.toThrow(- 'Not running in Tauri'- );- expect(mockCallCoreRpc).not.toHaveBeenCalled();+ mockCallCoreRpc.mockResolvedValue({ result: {}, logs: [] });+ await openhumanUpdateLocalAiSettings({ runtime_enabled: true });+ expect(mockCallCoreRpc).toHaveBeenCalledTimes(1);});test('forwards the patch to openhuman.inference_update_local_settings', async () => {@@ -59,12 +58,11 @@ describe('tauriCommands/config', () => {});describe('openhumanUpdateAutonomySettings', () => {- test('throws when not running in Tauri', async () => {+ test('calls core RPC when not running in Tauri', async () => {mockIsTauri.mockReturnValue(false);- await expect(openhumanUpdateAutonomySettings({ max_actions_per_hour: 100 })).rejects.toThrow(- 'Not running in Tauri'- );- expect(mockCallCoreRpc).not.toHaveBeenCalled();+ mockCallCoreRpc.mockResolvedValue({ result: {}, logs: [] });+ await openhumanUpdateAutonomySettings({ max_actions_per_hour: 100 });+ expect(mockCallCoreRpc).toHaveBeenCalledTimes(1);});test('forwards the patch to openhuman.config_update_autonomy_settings', async () => {@@ -81,10 +79,11 @@ describe('tauriCommands/config', () => {});describe('openhumanGetAutonomySettings', () => {- test('throws when not running in Tauri', async () => {+ test('calls core RPC when not running in Tauri', async () => {mockIsTauri.mockReturnValue(false);- await expect(openhumanGetAutonomySettings()).rejects.toThrow('Not running in Tauri');- expect(mockCallCoreRpc).not.toHaveBeenCalled();+ mockCallCoreRpc.mockResolvedValue({ result: {}, logs: [] });+ await openhumanGetAutonomySettings();+ expect(mockCallCoreRpc).toHaveBeenCalledTimes(1);});test('reads via openhuman.config_get_autonomy_settings', async () => {@@ -105,12 +104,11 @@ describe('tauriCommands/config', () => {openhumanUpdateComposioTriggerSettings = actual.openhumanUpdateComposioTriggerSettings;});- test('throws when not running in Tauri', async () => {+ test('calls core RPC when not running in Tauri', async () => {mockIsTauri.mockReturnValue(false);- await expect(- openhumanUpdateComposioTriggerSettings({ triage_disabled: true })- ).rejects.toThrow('Not running in Tauri');- expect(mockCallCoreRpc).not.toHaveBeenCalled();+ mockCallCoreRpc.mockResolvedValue({ result: {}, logs: [] });+ await openhumanUpdateComposioTriggerSettings({ triage_disabled: true });+ expect(mockCallCoreRpc).toHaveBeenCalledTimes(1);});test('forwards the patch to openhuman.config_update_composio_trigger_settings', async () => {@@ -150,10 +148,11 @@ describe('tauriCommands/config', () => {openhumanGetComposioTriggerSettings = actual.openhumanGetComposioTriggerSettings;});- test('throws when not running in Tauri', async () => {+ test('calls core RPC when not running in Tauri', async () => {mockIsTauri.mockReturnValue(false);- await expect(openhumanGetComposioTriggerSettings()).rejects.toThrow('Not running in Tauri');- expect(mockCallCoreRpc).not.toHaveBeenCalled();+ mockCallCoreRpc.mockResolvedValue({ result: {}, logs: [] });+ await openhumanGetComposioTriggerSettings();+ expect(mockCallCoreRpc).toHaveBeenCalledTimes(1);});test('reads via openhuman.config_get_composio_trigger_settings', async () => {