Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): add coverage test for useSettingsNavigation hook\n\nAdd a new test file to improve test coverage for the useSettingsNavigation hook, ensuring its behavior is properly validated and documented.\n\nAuto-committed-on: macbook\n

Steven Enamakel96477bc93392
diff --git a/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx b/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
index c40512e8c6..f961c3d778 100644
--- a/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
+++ b/app/src/components/settings/hooks/__tests__/useSettingsNavigation.coverage.test.tsx
@@ -56,8 +56,7 @@ describe('account section leaves', () => {
// through to home (the redirect to /settings/account lives in the
// route-elements layer).
test('team (retired) resolves to home', () => expectRoute('/settings/team', 'home'));
- test('migration resolves to migration', () =>
- expectRoute('/settings/migration', 'migration'));
+ test('migration resolves to migration', () => expectRoute('/settings/migration', 'migration'));
});
describe('ai section leaves', () => {
@@ -95,8 +94,7 @@ describe('crypto section leaves', () => {
describe('developer section leaves', () => {
// Cron moved to the Workflows module (`/flows?view=schedules`), so the old
// settings slug falls through to home the same way 'intelligence' does.
- test('cron-jobs (retired) resolves to home', () =>
- expectRoute('/settings/cron-jobs', 'home'));
+ test('cron-jobs (retired) resolves to home', () => expectRoute('/settings/cron-jobs', 'home'));
// 'intelligence' was retired with the Brain Knowledge & Memory cleanup — the
// old settings slug now falls through to home (redirect handled at the
// route-elements layer, which bounces it to /brain).