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-28 20:10:19 +02:00
parent f6fdae6b0c
commit c2402f9360
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');
});
});