Skip to content

Commit 173a380

Browse files
committed
Fix AuthContext tests: assert /api/v1/auth/* URLs after routing migration
1 parent 8eabdf2 commit 173a380

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/contexts/AuthContext.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ describe('AuthContext', () => {
205205
});
206206

207207
const callUrl = (axios.default.post as any).mock.calls[0][0];
208-
expect(callUrl).toContain('/api/auth/login');
208+
expect(callUrl).toContain('/api/v1/auth/login');
209209
});
210210
});
211211

@@ -274,7 +274,7 @@ describe('AuthContext', () => {
274274
});
275275

276276
const callUrl = (axios.default.post as any).mock.calls[0][0];
277-
expect(callUrl).toContain('/api/auth/register');
277+
expect(callUrl).toContain('/api/v1/auth/register');
278278
});
279279

280280
it('sends first and last name in register payload', async () => {

0 commit comments

Comments
 (0)