diff --git a/frontend/src/__tests__/UserProfile.spec.ts b/frontend/src/__tests__/UserProfile.spec.ts index 7e8a998..540c01c 100644 --- a/frontend/src/__tests__/UserProfile.spec.ts +++ b/frontend/src/__tests__/UserProfile.spec.ts @@ -417,7 +417,6 @@ describe('UserProfile - Auto-save', () => { it('saveNames sends PUT with first and last name', async () => { await flushPromises() await nextTick() - ;(global.fetch as any).mockResolvedValueOnce({ ok: true, json: async () => ({}) }) wrapper.vm.firstName = 'Updated' @@ -435,7 +434,6 @@ describe('UserProfile - Auto-save', () => { it('saveImage sends PUT with image_id', async () => { await flushPromises() await nextTick() - ;(global.fetch as any).mockResolvedValueOnce({ ok: true, json: async () => ({}) }) await wrapper.vm.saveImage('new-image-id') @@ -502,7 +500,6 @@ describe('UserProfile - Auto-save', () => { it('shows error message on failed profile update', async () => { await flushPromises() await nextTick() - ;(global.fetch as any).mockResolvedValueOnce({ ok: false, status: 500, @@ -579,7 +576,6 @@ describe('UserProfile - Notification Toggles', () => { wrapper = mountWithDigest(true) await flushPromises() await nextTick() - ;(global.fetch as any).mockResolvedValueOnce({ ok: true, json: async () => ({}) }) await wrapper.vm.onToggleDigest(false) @@ -595,7 +591,6 @@ describe('UserProfile - Notification Toggles', () => { wrapper = mountWithDigest(true) await flushPromises() await nextTick() - ;(global.fetch as any).mockResolvedValueOnce({ ok: true, json: async () => ({}) }) expect(wrapper.vm.pushEnabled).toBe(false) @@ -666,6 +661,6 @@ describe('UserProfile - Tutorial restart', () => { const modal = wrapper.find('.mock-modal') expect(modal.text()).toContain('Tutorial Restart') - expect(modal.text()).toContain('Tutorial mode has been restarted') + expect(modal.text()).toContain('Tutorial mode has been restarted.') }) })