feat: update sign-out redirect to landing page
Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 13m17s

This commit is contained in:
2026-03-05 12:32:04 -05:00
parent ccfc710753
commit 384be2a79e

View File

@@ -193,14 +193,14 @@ describe('UserProfile - Delete Account', () => {
expect(mockLogoutUser).toHaveBeenCalled() expect(mockLogoutUser).toHaveBeenCalled()
}) })
it('redirects to login after sign-out', async () => { it('redirects to landing page after sign-out', async () => {
const pushSpy = vi.spyOn(mockRouter, 'push') const pushSpy = vi.spyOn(mockRouter, 'push')
wrapper.vm.showDeleteSuccess = true wrapper.vm.showDeleteSuccess = true
await wrapper.vm.handleDeleteSuccess() await wrapper.vm.handleDeleteSuccess()
await nextTick() await nextTick()
expect(pushSpy).toHaveBeenCalledWith('/auth/login') expect(pushSpy).toHaveBeenCalledWith('/')
}) })
it('closes error modal when Close button is clicked', async () => { it('closes error modal when Close button is clicked', async () => {