fix: update auth test to expect numeric user ID from /me endpoint
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -66,7 +66,7 @@ describe("Auth Routes", () => {
|
|||||||
expect(res.status).toBe(200);
|
expect(res.status).toBe(200);
|
||||||
const body = await res.json();
|
const body = await res.json();
|
||||||
expect(body.authenticated).toBe(true);
|
expect(body.authenticated).toBe(true);
|
||||||
expect(body.user.id).toBe("logto-user-abc123");
|
expect(typeof body.user.id).toBe("number");
|
||||||
expect(body.user.email).toBe("user@example.com");
|
expect(body.user.email).toBe("user@example.com");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user