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
Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 13m17s
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user