fix(settings): return router.push promise

The settings page composable function to go to a settings page now
returns the promise router.push returns.
This commit is contained in:
2026-07-26 18:45:04 +02:00
parent f5af9b3675
commit 89dbf8f0e7
2 changed files with 3 additions and 3 deletions
@@ -26,10 +26,10 @@ vi.mock('vue-router', () => ({
describe('useSettingsPage', () => {
describe('goToSettingsPage', () => {
test('goes to correct route', () => {
test('goes to correct route', async () => {
const { goToSettingsPage } = useSettingsPage();
goToSettingsPage('a.b.c');
await goToSettingsPage('a.b.c');
expect(pushRoute).toHaveBeenCalledWith('/settings/a/b/c');
});
});